@modern-js/repo-generator 0.0.0-next-1679906573863 → 0.0.0-next-1679973229500
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/index.js +10 -0
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -135913,6 +135913,7 @@ var require_constants6 = __commonJS({
|
|
|
135913
135913
|
API_DIR: () => API_DIR,
|
|
135914
135914
|
CONFIG_CACHE_DIR: () => CONFIG_CACHE_DIR,
|
|
135915
135915
|
CONFIG_FILE_EXTENSIONS: () => CONFIG_FILE_EXTENSIONS,
|
|
135916
|
+
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS,
|
|
135916
135917
|
DEFAULT_DEV_HOST: () => DEFAULT_DEV_HOST,
|
|
135917
135918
|
DEFAULT_SERVER_CONFIG: () => DEFAULT_SERVER_CONFIG,
|
|
135918
135919
|
ENTRY_NAME_PATTERN: () => ENTRY_NAME_PATTERN,
|
|
@@ -136164,6 +136165,15 @@ var require_constants6 = __commonJS({
|
|
|
136164
136165
|
],
|
|
136165
136166
|
"@modern-js/plugin-nocode": []
|
|
136166
136167
|
};
|
|
136168
|
+
var DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS = {
|
|
136169
|
+
allowNamespaces: true,
|
|
136170
|
+
allExtensions: true,
|
|
136171
|
+
allowDeclareFields: true,
|
|
136172
|
+
// aligns Babel's behavior with TypeScript's default behavior.
|
|
136173
|
+
// https://babeljs.io/docs/en/babel-preset-typescript#optimizeconstenums
|
|
136174
|
+
optimizeConstEnums: true,
|
|
136175
|
+
isTSX: true
|
|
136176
|
+
};
|
|
136167
136177
|
}
|
|
136168
136178
|
});
|
|
136169
136179
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-1679973229500",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"@types/node": "^14",
|
|
27
27
|
"jest": "^29",
|
|
28
28
|
"typescript": "^4",
|
|
29
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
30
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
31
|
-
"@modern-js/generator-
|
|
32
|
-
"@modern-js/generator-
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
29
|
+
"@modern-js/base-generator": "0.0.0-next-1679973229500",
|
|
30
|
+
"@modern-js/generator-common": "0.0.0-next-1679973229500",
|
|
31
|
+
"@modern-js/generator-plugin": "0.0.0-next-1679973229500",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-1679973229500",
|
|
33
|
+
"@modern-js/module-generator": "0.0.0-next-1679973229500",
|
|
34
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1679973229500",
|
|
35
|
+
"@modern-js/mwa-generator": "0.0.0-next-1679973229500",
|
|
36
|
+
"@modern-js/utils": "0.0.0-next-1679973229500",
|
|
37
|
+
"@modern-js/doc-generator": "0.0.0-next-1679973229500",
|
|
38
|
+
"@scripts/build": "0.0.0-next-1679973229500",
|
|
39
|
+
"@scripts/jest-config": "0.0.0-next-1679973229500"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"publishConfig": {
|