Skip to content

Commit c56d164

Browse files
DamianGlowalaantfu
andauthoredMar 28, 2024··
fix: update package.json files (#367)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent 018b785 commit c56d164

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed
 

‎packages/eslint-config/package.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
"name": "@nuxt/eslint-config",
33
"version": "0.3.0-beta.5",
44
"description": "ESLint config for Nuxt projects",
5-
"repository": "nuxt/eslint",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/nuxt/eslint.git",
8+
"directory": "packages/eslint-config"
9+
},
610
"license": "MIT",
711
"main": "./dist/legacy.cjs",
12+
"module": "./dist/legacy.mjs",
13+
"types": "./dist/legacy.d.ts",
814
"exports": {
915
".": {
1016
"import": "./dist/legacy.mjs",
@@ -13,6 +19,10 @@
1319
"./flat": {
1420
"import": "./dist/flat.mjs",
1521
"require": "./dist/flat.cjs"
22+
},
23+
"./legacy": {
24+
"import": "./dist/legacy.mjs",
25+
"require": "./dist/legacy.cjs"
1626
}
1727
},
1828
"files": [

‎packages/eslint-plugin/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"version": "0.3.0-beta.5",
55
"description": "ESLint plugin for Nuxt",
66
"license": "MIT",
7-
"repository": "nuxt/eslint",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/nuxt/eslint.git",
10+
"directory": "packages/eslint-plugin"
11+
},
812
"exports": {
913
".": {
1014
"types": "./dist/index.d.ts",

‎packages/module/package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"version": "0.3.0-beta.5",
55
"description": "Generate ESLint config from current Nuxt settings",
66
"license": "MIT",
7-
"repository": "nuxt/eslint",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/nuxt/eslint.git",
10+
"directory": "packages/module"
11+
},
812
"exports": {
913
".": {
1014
"types": "./dist/types.d.ts",
@@ -13,6 +17,7 @@
1317
}
1418
},
1519
"main": "./dist/module.cjs",
20+
"module": "./dist/module.mjs",
1621
"types": "./dist/types.d.ts",
1722
"files": [
1823
"dist"

0 commit comments

Comments
 (0)
Please sign in to comment.