@modern-js/utils 0.0.0-next-8a882ed80 → 0.0.0-next-1104a9f18
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/CHANGELOG.md +6 -1
- package/dist/analyzeProject.d.ts +2 -1
- package/dist/analyzeProject.js +8 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/analyzeProject.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const isApiOnly: (appDirectory: string, entryDir?: string) => Promise<boolean>;
|
|
1
|
+
export declare const isApiOnly: (appDirectory: string, entryDir?: string) => Promise<boolean>;
|
|
2
|
+
export declare const isWebOnly: () => Promise<boolean>;
|
package/dist/analyzeProject.js
CHANGED
|
@@ -47,7 +47,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
47
47
|
};
|
|
48
48
|
var analyzeProject_exports = {};
|
|
49
49
|
__export(analyzeProject_exports, {
|
|
50
|
-
isApiOnly: () => isApiOnly
|
|
50
|
+
isApiOnly: () => isApiOnly,
|
|
51
|
+
isWebOnly: () => isWebOnly
|
|
51
52
|
});
|
|
52
53
|
module.exports = __toCommonJS(analyzeProject_exports);
|
|
53
54
|
var path = __toESM(require("path"));
|
|
@@ -58,7 +59,12 @@ const isApiOnly = (appDirectory, entryDir) => __async(void 0, null, function* ()
|
|
|
58
59
|
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
59
60
|
return !existSrc || Boolean(options["api-only"]);
|
|
60
61
|
});
|
|
62
|
+
const isWebOnly = () => __async(void 0, null, function* () {
|
|
63
|
+
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
64
|
+
return Boolean(options["web-only"]);
|
|
65
|
+
});
|
|
61
66
|
// Annotate the CommonJS export names for ESM import in node:
|
|
62
67
|
0 && (module.exports = {
|
|
63
|
-
isApiOnly
|
|
68
|
+
isApiOnly,
|
|
69
|
+
isWebOnly
|
|
64
70
|
});
|
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-1104a9f18",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -167,9 +167,9 @@
|
|
|
167
167
|
"typescript": "^4",
|
|
168
168
|
"webpack": "^5.75.0",
|
|
169
169
|
"@types/serialize-javascript": "^5.0.1",
|
|
170
|
-
"@modern-js/types": "0.0.0-next-
|
|
171
|
-
"@scripts/build": "0.0.0-next-
|
|
172
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
170
|
+
"@modern-js/types": "0.0.0-next-1104a9f18",
|
|
171
|
+
"@scripts/build": "0.0.0-next-1104a9f18",
|
|
172
|
+
"@scripts/jest-config": "0.0.0-next-1104a9f18"
|
|
173
173
|
},
|
|
174
174
|
"sideEffects": false,
|
|
175
175
|
"scripts": {
|