@modern-js/repo-generator 0.0.0-next-1680098769946 → 0.0.0-next-1680102265549
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 +9 -3
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -135312,12 +135312,17 @@ var require_commands = __commonJS({
|
|
|
135312
135312
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
135313
135313
|
var commands_exports = {};
|
|
135314
135314
|
__export2(commands_exports, {
|
|
135315
|
+
getArgv: () => getArgv,
|
|
135315
135316
|
getCommand: () => getCommand,
|
|
135316
135317
|
isDevCommand: () => isDevCommand
|
|
135317
135318
|
});
|
|
135318
135319
|
module2.exports = __toCommonJS2(commands_exports);
|
|
135320
|
+
var getArgv = () => {
|
|
135321
|
+
var _a2;
|
|
135322
|
+
return (((_a2 = process.env.MODERN_ARGV) == null ? void 0 : _a2.split(" ")) || process.argv).slice(2);
|
|
135323
|
+
};
|
|
135319
135324
|
var getCommand = () => {
|
|
135320
|
-
const args =
|
|
135325
|
+
const args = getArgv();
|
|
135321
135326
|
const command = args[0];
|
|
135322
135327
|
return command;
|
|
135323
135328
|
};
|
|
@@ -138014,15 +138019,16 @@ var require_analyzeProject2 = __commonJS({
|
|
|
138014
138019
|
});
|
|
138015
138020
|
module2.exports = __toCommonJS2(analyzeProject_exports);
|
|
138016
138021
|
var path9 = __toESM2(require("path"));
|
|
138022
|
+
var import_commands = require_commands();
|
|
138017
138023
|
var import_compiled = require_compiled2();
|
|
138018
138024
|
var isApiOnly = (appDirectory, entryDir) => __async2(void 0, null, function* () {
|
|
138019
138025
|
const srcDir = path9.join(appDirectory, entryDir != null ? entryDir : "src");
|
|
138020
138026
|
const existSrc = yield import_compiled.fs.pathExists(srcDir);
|
|
138021
|
-
const options = (0, import_compiled.minimist)(
|
|
138027
|
+
const options = (0, import_compiled.minimist)((0, import_commands.getArgv)());
|
|
138022
138028
|
return !existSrc || Boolean(options["api-only"]);
|
|
138023
138029
|
});
|
|
138024
138030
|
var isWebOnly = () => __async2(void 0, null, function* () {
|
|
138025
|
-
const options = (0, import_compiled.minimist)(
|
|
138031
|
+
const options = (0, import_compiled.minimist)((0, import_commands.getArgv)());
|
|
138026
138032
|
return Boolean(options["web-only"]);
|
|
138027
138033
|
});
|
|
138028
138034
|
}
|
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-1680102265549",
|
|
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/generator
|
|
30
|
-
"@modern-js/
|
|
31
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
36
|
-
"@modern-js/doc-generator": "0.0.0-next-
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
29
|
+
"@modern-js/base-generator": "0.0.0-next-1680102265549",
|
|
30
|
+
"@modern-js/generator-common": "0.0.0-next-1680102265549",
|
|
31
|
+
"@modern-js/generator-plugin": "0.0.0-next-1680102265549",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-1680102265549",
|
|
33
|
+
"@modern-js/module-generator": "0.0.0-next-1680102265549",
|
|
34
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1680102265549",
|
|
35
|
+
"@modern-js/mwa-generator": "0.0.0-next-1680102265549",
|
|
36
|
+
"@modern-js/doc-generator": "0.0.0-next-1680102265549",
|
|
37
|
+
"@modern-js/utils": "0.0.0-next-1680102265549",
|
|
38
|
+
"@scripts/build": "0.0.0-next-1680102265549",
|
|
39
|
+
"@scripts/jest-config": "0.0.0-next-1680102265549"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"publishConfig": {
|