esmate 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{src/cli → cli}/esmate.js +2 -2
- package/package.json +8 -8
- /package/{src/cli → cli}/esmate.d.ts +0 -0
- /package/{src/cli → cli}/index.d.ts +0 -0
- /package/{src/cli → cli}/index.js +0 -0
- /package/{src/cli → cli}/modes.d.ts +0 -0
- /package/{src/cli → cli}/modes.js +0 -0
- /package/{src/cli → cli}/utils.d.ts +0 -0
- /package/{src/cli → cli}/utils.js +0 -0
- /package/{src/eslint → eslint}/index.d.ts +0 -0
- /package/{src/eslint → eslint}/index.js +0 -0
- /package/{src/eslint → eslint}/node.d.ts +0 -0
- /package/{src/eslint → eslint}/node.js +0 -0
- /package/{src/eslint → eslint}/react.d.ts +0 -0
- /package/{src/eslint → eslint}/react.js +0 -0
- /package/{src/eslint → eslint}/shared.d.ts +0 -0
- /package/{src/eslint → eslint}/shared.js +0 -0
- /package/{src/prettier → prettier}/index.d.ts +0 -0
- /package/{src/prettier → prettier}/index.js +0 -0
- /package/{src/prettier → prettier}/shared.d.ts +0 -0
- /package/{src/prettier → prettier}/shared.js +0 -0
- /package/{src/prettier → prettier}/tailwind.d.ts +0 -0
- /package/{src/prettier → prettier}/tailwind.js +0 -0
- /package/{src/vite → vite}/index.d.ts +0 -0
- /package/{src/vite → vite}/index.js +0 -0
- /package/{src/vite → vite}/react.d.ts +0 -0
- /package/{src/vite → vite}/react.js +0 -0
|
@@ -75,7 +75,7 @@ class ESMate {
|
|
|
75
75
|
for (const key in this.package.bin) {
|
|
76
76
|
const value = this.package.bin[key];
|
|
77
77
|
const { dir, name } = path.parse(value);
|
|
78
|
-
newBin[key] = `${dir}/${name}.js`;
|
|
78
|
+
newBin[key] = `${dir.replace('/src/', '/')}/${name}.js`;
|
|
79
79
|
}
|
|
80
80
|
return newBin;
|
|
81
81
|
})(), exports: (() => {
|
|
@@ -83,7 +83,7 @@ class ESMate {
|
|
|
83
83
|
for (const key in this.package.exports) {
|
|
84
84
|
const value = this.package.exports[key];
|
|
85
85
|
const { dir, name } = path.parse(value);
|
|
86
|
-
const out = `${dir}/${name}`;
|
|
86
|
+
const out = `${dir.replace('/src/', '/')}/${name}`;
|
|
87
87
|
newExports[key] = {
|
|
88
88
|
import: out + '.js',
|
|
89
89
|
types: out + '.d.ts',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esmate",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"esmate": "lib",
|
|
6
6
|
"type": "module",
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"zod": "^3.24.2"
|
|
33
33
|
},
|
|
34
34
|
"bin": {
|
|
35
|
-
"esm": "
|
|
35
|
+
"esm": "./cli/index.js"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
38
38
|
"./eslint": {
|
|
39
|
-
"import": "./
|
|
40
|
-
"types": "./
|
|
39
|
+
"import": "./eslint/index.js",
|
|
40
|
+
"types": "./eslint/index.d.ts"
|
|
41
41
|
},
|
|
42
42
|
"./prettier": {
|
|
43
|
-
"import": "./
|
|
44
|
-
"types": "./
|
|
43
|
+
"import": "./prettier/index.js",
|
|
44
|
+
"types": "./prettier/index.d.ts"
|
|
45
45
|
},
|
|
46
46
|
"./vite": {
|
|
47
|
-
"import": "./
|
|
48
|
-
"types": "./
|
|
47
|
+
"import": "./vite/index.js",
|
|
48
|
+
"types": "./vite/index.d.ts"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|