@dimina/compiler 1.0.12-beta.0 → 1.0.12-beta.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.
|
@@ -238,11 +238,10 @@ function buildJSByPath(packageName, module2, compileRes, mainCompileRes, addExtr
|
|
|
238
238
|
compileInfo.code = code;
|
|
239
239
|
}
|
|
240
240
|
function getExtraInfoStatement(type, addedArgs) {
|
|
241
|
-
const propertyAssignment = types.objectProperty(types.identifier("__extraInfo"), addedArgs);
|
|
242
241
|
const assignmentExpression = types.assignmentExpression(
|
|
243
242
|
"=",
|
|
244
|
-
types.memberExpression(types.identifier("globalThis"),
|
|
245
|
-
|
|
243
|
+
types.memberExpression(types.identifier("globalThis"), types.identifier("__extraInfo")),
|
|
244
|
+
addedArgs
|
|
246
245
|
);
|
|
247
246
|
return types.expressionStatement(assignmentExpression);
|
|
248
247
|
}
|
|
@@ -236,11 +236,10 @@ function buildJSByPath(packageName, module, compileRes, mainCompileRes, addExtra
|
|
|
236
236
|
compileInfo.code = code;
|
|
237
237
|
}
|
|
238
238
|
function getExtraInfoStatement(type, addedArgs) {
|
|
239
|
-
const propertyAssignment = types.objectProperty(types.identifier("__extraInfo"), addedArgs);
|
|
240
239
|
const assignmentExpression = types.assignmentExpression(
|
|
241
240
|
"=",
|
|
242
|
-
types.memberExpression(types.identifier("globalThis"),
|
|
243
|
-
|
|
241
|
+
types.memberExpression(types.identifier("globalThis"), types.identifier("__extraInfo")),
|
|
242
|
+
addedArgs
|
|
244
243
|
);
|
|
245
244
|
return types.expressionStatement(assignmentExpression);
|
|
246
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimina/compiler",
|
|
3
|
-
"version": "1.0.12-beta.
|
|
3
|
+
"version": "1.0.12-beta.2",
|
|
4
4
|
"description": "星河编译工具",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"test": "vitest run",
|
|
35
35
|
"test:dev": "vitest",
|
|
36
36
|
"coverage": "vitest run --coverage",
|
|
37
|
-
"
|
|
38
|
-
|
|
37
|
+
"release:beta": "npm version prerelease --preid=beta && npm publish --tag beta",
|
|
38
|
+
"release": "npm version patch && npm publish"
|
|
39
39
|
},
|
|
40
40
|
"author": "doslin",
|
|
41
41
|
"license": "Apache-2.0",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"typescript": "^5.9.3"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
|
-
"registry": "https://registry.npmjs.org/"
|
|
70
|
+
"registry": "https://registry.npmjs.org/",
|
|
71
|
+
"access": "public"
|
|
71
72
|
}
|
|
72
73
|
}
|