@modern-js/module-tools 2.63.7 → 2.64.1
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/dist/builder/feature/redirect.js +1 -1
- package/dist/utils/dts.js +1 -1
- package/package.json +12 -12
|
@@ -194,7 +194,7 @@ const redirect = {
|
|
|
194
194
|
return result;
|
|
195
195
|
}, {});
|
|
196
196
|
try {
|
|
197
|
-
const sgNode = import_napi.
|
|
197
|
+
const sgNode = (0, import_napi.parse)(import_napi.Lang.JavaScript, code).root();
|
|
198
198
|
const matcher = {
|
|
199
199
|
rule: {
|
|
200
200
|
kind: "string_fragment",
|
package/dist/utils/dts.js
CHANGED
|
@@ -119,7 +119,7 @@ const processDtsFilesAfterTsc = async (config) => {
|
|
|
119
119
|
const str = new import_magic_string.default(code);
|
|
120
120
|
const originalFilePath = (0, import_path.resolve)(absoluteBaseUrl, (userTsconfig === null || userTsconfig === void 0 ? void 0 : (_userTsconfig_compilerOptions = userTsconfig.compilerOptions) === null || _userTsconfig_compilerOptions === void 0 ? void 0 : _userTsconfig_compilerOptions.rootDir) || "src", (0, import_path.relative)(distPath, filePath));
|
|
121
121
|
try {
|
|
122
|
-
const sgNode = import_napi.
|
|
122
|
+
const sgNode = (0, import_napi.parse)(import_napi.Lang.JavaScript, code).root();
|
|
123
123
|
const matcher = {
|
|
124
124
|
rule: {
|
|
125
125
|
kind: "string_fragment",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/module-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.1",
|
|
4
4
|
"description": "Simple, powerful, high-performance modern npm package development solution.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"modern",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@ampproject/remapping": "^2.2.1",
|
|
54
|
-
"@ast-grep/napi": "0.
|
|
54
|
+
"@ast-grep/napi": "0.34.4",
|
|
55
55
|
"@babel/core": "^7.26.0",
|
|
56
56
|
"@babel/types": "^7.26.0",
|
|
57
57
|
"@modern-js/swc-plugins": "0.6.11",
|
|
58
58
|
"@rollup/pluginutils": "4.2.1",
|
|
59
59
|
"@swc/helpers": "0.5.13",
|
|
60
|
-
"convert-source-map": "1.
|
|
60
|
+
"convert-source-map": "1.9.0",
|
|
61
61
|
"enhanced-resolve": "5.17.1",
|
|
62
62
|
"esbuild": "0.19.2",
|
|
63
63
|
"magic-string": "0.30.17",
|
|
@@ -70,21 +70,21 @@
|
|
|
70
70
|
"tapable": "2.2.1",
|
|
71
71
|
"terser": "^5.31.1",
|
|
72
72
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
73
|
-
"@modern-js/core": "2.
|
|
74
|
-
"@modern-js/plugin": "2.
|
|
75
|
-
"@modern-js/plugin-
|
|
76
|
-
"@modern-js/plugin-
|
|
77
|
-
"@modern-js/
|
|
78
|
-
"@modern-js/
|
|
73
|
+
"@modern-js/core": "2.64.1",
|
|
74
|
+
"@modern-js/plugin": "2.64.1",
|
|
75
|
+
"@modern-js/plugin-i18n": "2.64.1",
|
|
76
|
+
"@modern-js/plugin-changeset": "2.64.1",
|
|
77
|
+
"@modern-js/utils": "2.64.1",
|
|
78
|
+
"@modern-js/types": "2.64.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@rsbuild/core": "1.1.13",
|
|
82
82
|
"@types/convert-source-map": "1.5.2",
|
|
83
83
|
"@types/node": "^14",
|
|
84
84
|
"typescript": "^5",
|
|
85
|
-
"@modern-js/self": "npm:@modern-js/module-tools@2.
|
|
86
|
-
"@scripts/
|
|
87
|
-
"@scripts/
|
|
85
|
+
"@modern-js/self": "npm:@modern-js/module-tools@2.64.1",
|
|
86
|
+
"@scripts/build": "2.64.1",
|
|
87
|
+
"@scripts/vitest-config": "2.64.1"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"typescript": "^4 || ^5"
|