@modern-js/repo-generator 0.0.0-next-1679906573863 → 0.0.0-next-1679971675081

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -0
  2. 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-1679906573863",
14
+ "version": "0.0.0-next-1679971675081",
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-1679906573863",
30
- "@modern-js/generator-common": "0.0.0-next-1679906573863",
31
- "@modern-js/generator-utils": "0.0.0-next-1679906573863",
32
- "@modern-js/generator-plugin": "0.0.0-next-1679906573863",
33
- "@modern-js/monorepo-generator": "0.0.0-next-1679906573863",
34
- "@modern-js/module-generator": "0.0.0-next-1679906573863",
35
- "@modern-js/mwa-generator": "0.0.0-next-1679906573863",
36
- "@modern-js/doc-generator": "0.0.0-next-1679906573863",
37
- "@scripts/build": "0.0.0-next-1679906573863",
38
- "@modern-js/utils": "0.0.0-next-1679906573863",
39
- "@scripts/jest-config": "0.0.0-next-1679906573863"
29
+ "@modern-js/base-generator": "0.0.0-next-1679971675081",
30
+ "@modern-js/generator-common": "0.0.0-next-1679971675081",
31
+ "@modern-js/generator-plugin": "0.0.0-next-1679971675081",
32
+ "@modern-js/generator-utils": "0.0.0-next-1679971675081",
33
+ "@modern-js/module-generator": "0.0.0-next-1679971675081",
34
+ "@modern-js/monorepo-generator": "0.0.0-next-1679971675081",
35
+ "@modern-js/mwa-generator": "0.0.0-next-1679971675081",
36
+ "@modern-js/doc-generator": "0.0.0-next-1679971675081",
37
+ "@modern-js/utils": "0.0.0-next-1679971675081",
38
+ "@scripts/jest-config": "0.0.0-next-1679971675081",
39
+ "@scripts/build": "0.0.0-next-1679971675081"
40
40
  },
41
41
  "sideEffects": false,
42
42
  "publishConfig": {