@storm-software/workspace-tools 1.54.0 → 1.54.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.
- package/CHANGELOG.md +14 -0
- package/index.js +84 -88
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +31 -29
- package/src/executors/design-tokens/executor.js +12 -12
- package/src/executors/tsup/executor.js +17 -15
- package/src/executors/tsup-browser/executor.js +17 -15
- package/src/executors/tsup-neutral/executor.js +17 -15
- package/src/executors/tsup-node/executor.js +17 -15
- package/src/executors/typia/executor.js +7 -5
- package/src/generators/browser-library/generator.js +31 -29
- package/src/generators/config-schema/generator.js +2940 -2946
- package/src/generators/neutral-library/generator.js +31 -29
- package/src/generators/node-library/generator.js +31 -29
- package/src/generators/preset/generator.js +7 -5
- package/src/utils/index.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
## 1.54.1 (2024-02-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🩹 Fixes
|
|
7
|
+
|
|
8
|
+
- **workspace-tools:** Fixed `project.json` issue with `assets` parameter excluding declarations file ([0a91e9d1](https://github.com/storm-software/storm-ops/commit/0a91e9d1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Patrick Sullivan
|
|
14
|
+
|
|
1
15
|
## 1.54.0 (2024-02-06)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
CHANGED
|
@@ -42242,9 +42242,9 @@ var require_generator = __commonJS({
|
|
|
42242
42242
|
}
|
|
42243
42243
|
});
|
|
42244
42244
|
|
|
42245
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42245
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/utils/flat-config.js
|
|
42246
42246
|
var require_flat_config = __commonJS({
|
|
42247
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42247
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/utils/flat-config.js"(exports2) {
|
|
42248
42248
|
"use strict";
|
|
42249
42249
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42250
42250
|
exports2.useFlatConfig = void 0;
|
|
@@ -42255,9 +42255,9 @@ var require_flat_config = __commonJS({
|
|
|
42255
42255
|
}
|
|
42256
42256
|
});
|
|
42257
42257
|
|
|
42258
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42258
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/flat-config/path-utils.js
|
|
42259
42259
|
var require_path_utils = __commonJS({
|
|
42260
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42260
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/flat-config/path-utils.js"(exports2) {
|
|
42261
42261
|
"use strict";
|
|
42262
42262
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42263
42263
|
exports2.mapFilePath = exports2.updateFiles = void 0;
|
|
@@ -42287,9 +42287,9 @@ var require_path_utils = __commonJS({
|
|
|
42287
42287
|
}
|
|
42288
42288
|
});
|
|
42289
42289
|
|
|
42290
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42290
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js
|
|
42291
42291
|
var require_ast_utils2 = __commonJS({
|
|
42292
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42292
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/flat-config/ast-utils.js"(exports2) {
|
|
42293
42293
|
"use strict";
|
|
42294
42294
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42295
42295
|
exports2.generateAst = exports2.mapFilePaths = exports2.generateFlatOverride = exports2.generateRequire = exports2.stringifyNodeList = exports2.generatePluginExtendsElement = exports2.generateSpreadElement = exports2.createNodeList = exports2.addCompatToFlatConfig = exports2.addPluginsToExportsBlock = exports2.removeCompatExtends = exports2.removePlugin = exports2.addBlockToFlatConfigExport = exports2.addImportToFlatConfig = exports2.replaceOverride = exports2.hasOverride = exports2.removeOverridesFromLintConfig = void 0;
|
|
@@ -42746,9 +42746,9 @@ const compat = new FlatCompat({
|
|
|
42746
42746
|
}
|
|
42747
42747
|
});
|
|
42748
42748
|
|
|
42749
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42749
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/utils/config-file.js
|
|
42750
42750
|
var require_config_file = __commonJS({
|
|
42751
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42751
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/utils/config-file.js"(exports2) {
|
|
42752
42752
|
"use strict";
|
|
42753
42753
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42754
42754
|
exports2.isFlatConfig = exports2.findBaseEslintFile = exports2.baseEsLintFlatConfigFile = exports2.baseEsLintConfigFile = exports2.ESLINT_CONFIG_FILENAMES = void 0;
|
|
@@ -42787,9 +42787,9 @@ var require_config_file = __commonJS({
|
|
|
42787
42787
|
}
|
|
42788
42788
|
});
|
|
42789
42789
|
|
|
42790
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42790
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/eslint-file.js
|
|
42791
42791
|
var require_eslint_file = __commonJS({
|
|
42792
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
42792
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/eslint-file.js"(exports2) {
|
|
42793
42793
|
"use strict";
|
|
42794
42794
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42795
42795
|
exports2.getPluginImport = exports2.addIgnoresToLintConfig = exports2.addPluginsToLintConfig = exports2.addExtendsToLintConfig = exports2.replaceOverridesInLintConfig = exports2.lintConfigHasOverride = exports2.updateOverrideInLintConfig = exports2.addOverrideToLintConfig = exports2.updateRelativePathsInConfig = exports2.isEslintConfigSupported = exports2.findEslintFile = void 0;
|
|
@@ -43635,9 +43635,9 @@ var require_src = __commonJS({
|
|
|
43635
43635
|
}
|
|
43636
43636
|
});
|
|
43637
43637
|
|
|
43638
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43638
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/package.json
|
|
43639
43639
|
var require_package4 = __commonJS({
|
|
43640
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43640
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/package.json"(exports2, module2) {
|
|
43641
43641
|
module2.exports = {
|
|
43642
43642
|
name: "@nx/eslint",
|
|
43643
43643
|
version: "17.2.8",
|
|
@@ -43696,9 +43696,9 @@ var require_package4 = __commonJS({
|
|
|
43696
43696
|
}
|
|
43697
43697
|
});
|
|
43698
43698
|
|
|
43699
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43699
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/utils/versions.js
|
|
43700
43700
|
var require_versions4 = __commonJS({
|
|
43701
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43701
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/utils/versions.js"(exports2) {
|
|
43702
43702
|
"use strict";
|
|
43703
43703
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
43704
43704
|
exports2.typescriptESLintVersion = exports2.eslintConfigPrettierVersion = exports2.eslintrcVersion = exports2.eslintVersion = exports2.nxVersion = void 0;
|
|
@@ -43710,9 +43710,9 @@ var require_versions4 = __commonJS({
|
|
|
43710
43710
|
}
|
|
43711
43711
|
});
|
|
43712
43712
|
|
|
43713
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43713
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js
|
|
43714
43714
|
var require_global_eslint_config = __commonJS({
|
|
43715
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43715
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/init/global-eslint-config.js"(exports2) {
|
|
43716
43716
|
"use strict";
|
|
43717
43717
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
43718
43718
|
exports2.getGlobalFlatEslintConfiguration = exports2.getGlobalEsLintConfiguration = exports2.javaScriptOverride = exports2.typeScriptOverride = void 0;
|
|
@@ -43798,9 +43798,9 @@ var require_global_eslint_config = __commonJS({
|
|
|
43798
43798
|
}
|
|
43799
43799
|
});
|
|
43800
43800
|
|
|
43801
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43801
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/plugin.js
|
|
43802
43802
|
var require_plugin = __commonJS({
|
|
43803
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43803
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/utils/plugin.js"(exports2) {
|
|
43804
43804
|
"use strict";
|
|
43805
43805
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
43806
43806
|
exports2.hasEslintPlugin = void 0;
|
|
@@ -43813,9 +43813,9 @@ var require_plugin = __commonJS({
|
|
|
43813
43813
|
}
|
|
43814
43814
|
});
|
|
43815
43815
|
|
|
43816
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43816
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/init/init.js
|
|
43817
43817
|
var require_init2 = __commonJS({
|
|
43818
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43818
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/init/init.js"(exports2) {
|
|
43819
43819
|
"use strict";
|
|
43820
43820
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
43821
43821
|
exports2.lintInitGenerator = void 0;
|
|
@@ -43917,9 +43917,9 @@ var require_init2 = __commonJS({
|
|
|
43917
43917
|
}
|
|
43918
43918
|
});
|
|
43919
43919
|
|
|
43920
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43920
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/init/init-migration.js
|
|
43921
43921
|
var require_init_migration = __commonJS({
|
|
43922
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
43922
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/init/init-migration.js"(exports2) {
|
|
43923
43923
|
"use strict";
|
|
43924
43924
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
43925
43925
|
exports2.findLintTarget = exports2.migrateConfigToMonorepoStyle = void 0;
|
|
@@ -44022,9 +44022,9 @@ var require_init_migration = __commonJS({
|
|
|
44022
44022
|
}
|
|
44023
44023
|
});
|
|
44024
44024
|
|
|
44025
|
-
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
44025
|
+
// node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js
|
|
44026
44026
|
var require_lint_project = __commonJS({
|
|
44027
|
-
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.
|
|
44027
|
+
"node_modules/.pnpm/@nx+eslint@17.2.8_@swc-node+register@1.6.8_@swc+core@1.3.106_@types+node@20.11.8_eslint@8.56._kiswhkyh3txnc4zuaf2hxprxqe/node_modules/@nx/eslint/src/generators/lint-project/lint-project.js"(exports2) {
|
|
44028
44028
|
"use strict";
|
|
44029
44029
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
44030
44030
|
exports2.lintProjectGenerator = void 0;
|
|
@@ -46954,8 +46954,8 @@ var require_dist2 = __commonJS({
|
|
|
46954
46954
|
loadTsConfig: () => loadTsConfig2
|
|
46955
46955
|
});
|
|
46956
46956
|
module2.exports = __toCommonJS2(src_exports);
|
|
46957
|
-
var
|
|
46958
|
-
var
|
|
46957
|
+
var import_path2 = __toESM2(require("path"), 1);
|
|
46958
|
+
var import_fs2 = __toESM2(require("fs"), 1);
|
|
46959
46959
|
var singleComment = Symbol("singleComment");
|
|
46960
46960
|
var multiComment = Symbol("multiComment");
|
|
46961
46961
|
var stripWithoutWhitespace = () => "";
|
|
@@ -47050,29 +47050,29 @@ var require_dist2 = __commonJS({
|
|
|
47050
47050
|
}
|
|
47051
47051
|
}
|
|
47052
47052
|
var req = false ? createRequire(import_meta.url) : require;
|
|
47053
|
-
var findUp = (name, startDir, stopDir =
|
|
47053
|
+
var findUp = (name, startDir, stopDir = import_path2.default.parse(startDir).root) => {
|
|
47054
47054
|
let dir = startDir;
|
|
47055
47055
|
while (dir !== stopDir) {
|
|
47056
|
-
const file =
|
|
47057
|
-
if (
|
|
47056
|
+
const file = import_path2.default.join(dir, name);
|
|
47057
|
+
if (import_fs2.default.existsSync(file))
|
|
47058
47058
|
return file;
|
|
47059
47059
|
if (!file.endsWith(".json")) {
|
|
47060
47060
|
const fileWithExt = file + ".json";
|
|
47061
|
-
if (
|
|
47061
|
+
if (import_fs2.default.existsSync(fileWithExt))
|
|
47062
47062
|
return fileWithExt;
|
|
47063
47063
|
}
|
|
47064
|
-
dir =
|
|
47064
|
+
dir = import_path2.default.dirname(dir);
|
|
47065
47065
|
}
|
|
47066
47066
|
return null;
|
|
47067
47067
|
};
|
|
47068
47068
|
var resolveTsConfigFromFile = (cwd, filename) => {
|
|
47069
|
-
if (
|
|
47070
|
-
return
|
|
47069
|
+
if (import_path2.default.isAbsolute(filename))
|
|
47070
|
+
return import_fs2.default.existsSync(filename) ? filename : null;
|
|
47071
47071
|
return findUp(filename, cwd);
|
|
47072
47072
|
};
|
|
47073
47073
|
var resolveTsConfigFromExtends = (cwd, name) => {
|
|
47074
|
-
if (
|
|
47075
|
-
return
|
|
47074
|
+
if (import_path2.default.isAbsolute(name))
|
|
47075
|
+
return import_fs2.default.existsSync(name) ? name : null;
|
|
47076
47076
|
if (name.startsWith("."))
|
|
47077
47077
|
return findUp(name, cwd);
|
|
47078
47078
|
const id = req.resolve(name, { paths: [cwd] });
|
|
@@ -47080,14 +47080,14 @@ var require_dist2 = __commonJS({
|
|
|
47080
47080
|
};
|
|
47081
47081
|
var loadTsConfigInternal = (dir = process.cwd(), name = "tsconfig.json", isExtends = false) => {
|
|
47082
47082
|
var _a, _b;
|
|
47083
|
-
dir =
|
|
47083
|
+
dir = import_path2.default.resolve(dir);
|
|
47084
47084
|
const id = isExtends ? resolveTsConfigFromExtends(dir, name) : resolveTsConfigFromFile(dir, name);
|
|
47085
47085
|
if (!id)
|
|
47086
47086
|
return null;
|
|
47087
|
-
const data = jsoncParse(
|
|
47088
|
-
const configDir =
|
|
47087
|
+
const data = jsoncParse(import_fs2.default.readFileSync(id, "utf-8"));
|
|
47088
|
+
const configDir = import_path2.default.dirname(id);
|
|
47089
47089
|
if ((_a = data.compilerOptions) == null ? void 0 : _a.baseUrl) {
|
|
47090
|
-
data.compilerOptions.baseUrl =
|
|
47090
|
+
data.compilerOptions.baseUrl = import_path2.default.join(
|
|
47091
47091
|
configDir,
|
|
47092
47092
|
data.compilerOptions.baseUrl
|
|
47093
47093
|
);
|
|
@@ -47164,8 +47164,8 @@ var require_dist3 = __commonJS({
|
|
|
47164
47164
|
tsconfigPathsToRegExp: () => tsconfigPathsToRegExp
|
|
47165
47165
|
});
|
|
47166
47166
|
module2.exports = __toCommonJS2(src_exports);
|
|
47167
|
-
var
|
|
47168
|
-
var
|
|
47167
|
+
var import_fs2 = __toESM2(require("fs"), 1);
|
|
47168
|
+
var import_path2 = __toESM2(require("path"), 1);
|
|
47169
47169
|
var import_url3 = require("url");
|
|
47170
47170
|
var import_esbuild = require("esbuild");
|
|
47171
47171
|
var import_load_tsconfig = require_dist2();
|
|
@@ -47240,7 +47240,7 @@ var require_dist3 = __commonJS({
|
|
|
47240
47240
|
name: "bundle-require:external",
|
|
47241
47241
|
setup(ctx) {
|
|
47242
47242
|
ctx.onResolve({ filter: /.*/ }, async (args) => {
|
|
47243
|
-
if (args.path[0] === "." ||
|
|
47243
|
+
if (args.path[0] === "." || import_path2.default.isAbsolute(args.path)) {
|
|
47244
47244
|
return;
|
|
47245
47245
|
}
|
|
47246
47246
|
if (match2(args.path, external)) {
|
|
@@ -47269,11 +47269,11 @@ var require_dist3 = __commonJS({
|
|
|
47269
47269
|
"import.meta.url": IMPORT_META_URL_VAR_NAME
|
|
47270
47270
|
};
|
|
47271
47271
|
ctx.onLoad({ filter: JS_EXT_RE }, async (args) => {
|
|
47272
|
-
const contents = await
|
|
47272
|
+
const contents = await import_fs2.default.promises.readFile(args.path, "utf-8");
|
|
47273
47273
|
const injectLines = [
|
|
47274
47274
|
`const ${FILENAME_VAR_NAME} = ${JSON.stringify(args.path)};`,
|
|
47275
47275
|
`const ${DIRNAME_VAR_NAME} = ${JSON.stringify(
|
|
47276
|
-
|
|
47276
|
+
import_path2.default.dirname(args.path)
|
|
47277
47277
|
)};`,
|
|
47278
47278
|
`const ${IMPORT_META_URL_VAR_NAME} = ${JSON.stringify(
|
|
47279
47279
|
(0, import_url3.pathToFileURL)(args.path).href
|
|
@@ -47281,7 +47281,7 @@ var require_dist3 = __commonJS({
|
|
|
47281
47281
|
];
|
|
47282
47282
|
return {
|
|
47283
47283
|
contents: injectLines.join("") + contents,
|
|
47284
|
-
loader: inferLoader(
|
|
47284
|
+
loader: inferLoader(import_path2.default.extname(args.path))
|
|
47285
47285
|
};
|
|
47286
47286
|
});
|
|
47287
47287
|
}
|
|
@@ -47307,7 +47307,7 @@ var require_dist3 = __commonJS({
|
|
|
47307
47307
|
const { text } = result.outputFiles[0];
|
|
47308
47308
|
const getOutputFile = options.getOutputFile || defaultGetOutputFile;
|
|
47309
47309
|
const outfile = getOutputFile(options.filepath, format2);
|
|
47310
|
-
await
|
|
47310
|
+
await import_fs2.default.promises.writeFile(outfile, text, "utf8");
|
|
47311
47311
|
let mod;
|
|
47312
47312
|
const req = options.require || dynamicImport;
|
|
47313
47313
|
try {
|
|
@@ -47317,7 +47317,7 @@ var require_dist3 = __commonJS({
|
|
|
47317
47317
|
);
|
|
47318
47318
|
} finally {
|
|
47319
47319
|
if (!preserveTemporaryFile) {
|
|
47320
|
-
await
|
|
47320
|
+
await import_fs2.default.promises.unlink(outfile);
|
|
47321
47321
|
}
|
|
47322
47322
|
}
|
|
47323
47323
|
return {
|
|
@@ -130245,7 +130245,7 @@ var nullableType = ZodNullable.create;
|
|
|
130245
130245
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
130246
130246
|
var pipelineType = ZodPipeline.create;
|
|
130247
130247
|
|
|
130248
|
-
// packages/config
|
|
130248
|
+
// packages/config/src/schema.ts
|
|
130249
130249
|
var ColorConfigSchema = objectType({
|
|
130250
130250
|
primary: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The primary color of the workspace"),
|
|
130251
130251
|
background: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The background color of the workspace"),
|
|
@@ -130496,9 +130496,9 @@ ${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">
|
|
|
130496
130496
|
return (message) => {
|
|
130497
130497
|
console.info(
|
|
130498
130498
|
`
|
|
130499
|
-
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(
|
|
130500
|
-
|
|
130501
|
-
)}
|
|
130499
|
+
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(
|
|
130500
|
+
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
130501
|
+
)(message)}
|
|
130502
130502
|
`
|
|
130503
130503
|
);
|
|
130504
130504
|
};
|
|
@@ -132177,7 +132177,9 @@ var getConfigEnv = () => {
|
|
|
132177
132177
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
132178
132178
|
branch: process.env[`${prefix}BRANCH`],
|
|
132179
132179
|
preid: process.env[`${prefix}PRE_ID`],
|
|
132180
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
132180
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
132181
|
+
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
132182
|
+
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
132181
132183
|
};
|
|
132182
132184
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
132183
132185
|
if (serializedConfig) {
|
|
@@ -140427,8 +140429,8 @@ var LARGE_BUFFER2 = 1024 * 1e6;
|
|
|
140427
140429
|
|
|
140428
140430
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
140429
140431
|
var import_devkit9 = __toESM(require_devkit());
|
|
140430
|
-
var
|
|
140431
|
-
var
|
|
140432
|
+
var import_node_fs6 = require("node:fs");
|
|
140433
|
+
var import_node_path7 = require("node:path");
|
|
140432
140434
|
|
|
140433
140435
|
// node_modules/.pnpm/zod-to-json-schema@3.22.3_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
140434
140436
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
@@ -141441,11 +141443,8 @@ async function configSchemaGeneratorFn(tree, options) {
|
|
|
141441
141443
|
const modules = await Promise.all(
|
|
141442
141444
|
Object.keys(projectConfigurations).map(async (key) => {
|
|
141443
141445
|
if (projectConfigurations[key]?.config) {
|
|
141444
|
-
const configPath = (0,
|
|
141445
|
-
|
|
141446
|
-
projectConfigurations[key].config
|
|
141447
|
-
);
|
|
141448
|
-
if ((0, import_fs2.existsSync)(configPath)) {
|
|
141446
|
+
const configPath = (0, import_node_path7.join)(workspaceRoot, projectConfigurations[key].config);
|
|
141447
|
+
if ((0, import_node_fs6.existsSync)(configPath)) {
|
|
141449
141448
|
const mod = await import(configPath);
|
|
141450
141449
|
if (mod.default) {
|
|
141451
141450
|
return { name: key, schema: mod.default };
|
|
@@ -141457,15 +141456,12 @@ async function configSchemaGeneratorFn(tree, options) {
|
|
|
141457
141456
|
);
|
|
141458
141457
|
const workspaceSchema = objectType({
|
|
141459
141458
|
modules: objectType(
|
|
141460
|
-
modules.filter((module2) => !!module2).reduce(
|
|
141461
|
-
(ret
|
|
141462
|
-
|
|
141463
|
-
|
|
141464
|
-
|
|
141465
|
-
|
|
141466
|
-
},
|
|
141467
|
-
{}
|
|
141468
|
-
)
|
|
141459
|
+
modules.filter((module2) => !!module2).reduce((ret, module2) => {
|
|
141460
|
+
if (module2?.schema && !ret[module2.name]) {
|
|
141461
|
+
ret[module2.name] = module2.schema;
|
|
141462
|
+
}
|
|
141463
|
+
return ret;
|
|
141464
|
+
}, {})
|
|
141469
141465
|
).describe("Configuration of each used extension")
|
|
141470
141466
|
});
|
|
141471
141467
|
const ModulesSchema = unionType([workspaceSchema, StormConfigSchema]).describe(
|
|
@@ -141473,7 +141469,7 @@ async function configSchemaGeneratorFn(tree, options) {
|
|
|
141473
141469
|
);
|
|
141474
141470
|
(0, import_devkit9.writeJson)(
|
|
141475
141471
|
tree,
|
|
141476
|
-
options.outputFile ? (0,
|
|
141472
|
+
options.outputFile ? (0, import_node_path7.join)(workspaceRoot, options.outputFile) : (0, import_node_path7.join)(workspaceRoot, "storm.schema.json"),
|
|
141477
141473
|
zodToJsonSchema(ModulesSchema, "StormConfig")
|
|
141478
141474
|
);
|
|
141479
141475
|
await (0, import_devkit9.formatFiles)(tree);
|
|
@@ -141772,12 +141768,12 @@ var generator_default3 = withRunGenerator(
|
|
|
141772
141768
|
);
|
|
141773
141769
|
|
|
141774
141770
|
// packages/workspace-tools/src/utils/find-cache-dir.ts
|
|
141775
|
-
var
|
|
141776
|
-
var
|
|
141771
|
+
var import_node_fs7 = require("node:fs");
|
|
141772
|
+
var import_node_path8 = require("node:path");
|
|
141777
141773
|
var import_node_process5 = require("node:process");
|
|
141778
141774
|
var isWritable2 = (path5) => {
|
|
141779
141775
|
try {
|
|
141780
|
-
(0,
|
|
141776
|
+
(0, import_node_fs7.accessSync)(path5, import_node_fs7.constants.W_OK);
|
|
141781
141777
|
return true;
|
|
141782
141778
|
} catch {
|
|
141783
141779
|
return false;
|
|
@@ -141785,13 +141781,13 @@ var isWritable2 = (path5) => {
|
|
|
141785
141781
|
};
|
|
141786
141782
|
function useDirectory(directory, { create = true }) {
|
|
141787
141783
|
if (create) {
|
|
141788
|
-
(0,
|
|
141784
|
+
(0, import_node_fs7.mkdirSync)(directory, { recursive: true });
|
|
141789
141785
|
}
|
|
141790
141786
|
return directory;
|
|
141791
141787
|
}
|
|
141792
141788
|
function getNodeModuleDirectory(workspaceRoot) {
|
|
141793
|
-
const nodeModules = (0,
|
|
141794
|
-
if ((0,
|
|
141789
|
+
const nodeModules = (0, import_node_path8.join)(workspaceRoot, "node_modules");
|
|
141790
|
+
if ((0, import_node_fs7.existsSync)(nodeModules) && !isWritable2(nodeModules)) {
|
|
141795
141791
|
throw new Error("Cannot write to node_modules directory");
|
|
141796
141792
|
}
|
|
141797
141793
|
return nodeModules;
|
|
@@ -141807,10 +141803,10 @@ function findCacheDirectory({
|
|
|
141807
141803
|
create: true
|
|
141808
141804
|
}) {
|
|
141809
141805
|
if (import_node_process5.env.CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process5.env.CACHE_DIR)) {
|
|
141810
|
-
return useDirectory((0,
|
|
141806
|
+
return useDirectory((0, import_node_path8.join)(import_node_process5.env.CACHE_DIR, name, cacheName), { create });
|
|
141811
141807
|
}
|
|
141812
141808
|
if (import_node_process5.env.STORM_CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process5.env.STORM_CACHE_DIR)) {
|
|
141813
|
-
return useDirectory((0,
|
|
141809
|
+
return useDirectory((0, import_node_path8.join)(import_node_process5.env.STORM_CACHE_DIR, name, cacheName), {
|
|
141814
141810
|
create
|
|
141815
141811
|
});
|
|
141816
141812
|
}
|
|
@@ -141818,7 +141814,7 @@ function findCacheDirectory({
|
|
|
141818
141814
|
if (!nodeModules) {
|
|
141819
141815
|
throw new Error("Cannot find node_modules directory");
|
|
141820
141816
|
}
|
|
141821
|
-
return useDirectory((0,
|
|
141817
|
+
return useDirectory((0, import_node_path8.join)(workspaceRoot, "node_modules", ".cache", name, cacheName), { create });
|
|
141822
141818
|
}
|
|
141823
141819
|
|
|
141824
141820
|
// packages/workspace-tools/src/utils/typia-transform.ts
|
|
@@ -141826,8 +141822,8 @@ var import_transform = __toESM(require_transform());
|
|
|
141826
141822
|
var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
|
|
141827
141823
|
|
|
141828
141824
|
// packages/workspace-tools/src/utils/workspace-storage.ts
|
|
141829
|
-
var
|
|
141830
|
-
var
|
|
141825
|
+
var import_node_fs8 = require("node:fs");
|
|
141826
|
+
var import_node_path9 = require("node:path");
|
|
141831
141827
|
var WorkspaceStorage = class {
|
|
141832
141828
|
constructor({
|
|
141833
141829
|
cacheName,
|
|
@@ -141847,9 +141843,9 @@ var WorkspaceStorage = class {
|
|
|
141847
141843
|
* @returns The value of the key
|
|
141848
141844
|
*/
|
|
141849
141845
|
getItem(key) {
|
|
141850
|
-
const cacheFile = (0,
|
|
141851
|
-
if ((0,
|
|
141852
|
-
return (0,
|
|
141846
|
+
const cacheFile = (0, import_node_path9.join)(this.cacheDir, key);
|
|
141847
|
+
if ((0, import_node_fs8.existsSync)(cacheFile)) {
|
|
141848
|
+
return (0, import_node_fs8.readFileSync)(cacheFile, "utf-8");
|
|
141853
141849
|
}
|
|
141854
141850
|
return void 0;
|
|
141855
141851
|
}
|
|
@@ -141860,7 +141856,7 @@ var WorkspaceStorage = class {
|
|
|
141860
141856
|
* @param value - The value to set
|
|
141861
141857
|
*/
|
|
141862
141858
|
setItem(key, value) {
|
|
141863
|
-
(0,
|
|
141859
|
+
(0, import_node_fs8.writeFileSync)((0, import_node_path9.join)(this.cacheDir, key), value, { encoding: "utf-8" });
|
|
141864
141860
|
}
|
|
141865
141861
|
/**
|
|
141866
141862
|
* Remove item from cache
|
|
@@ -141868,14 +141864,14 @@ var WorkspaceStorage = class {
|
|
|
141868
141864
|
* @param key - The key to remove
|
|
141869
141865
|
*/
|
|
141870
141866
|
removeItem(key) {
|
|
141871
|
-
(0,
|
|
141867
|
+
(0, import_node_fs8.rmSync)((0, import_node_path9.join)(this.cacheDir, key), { force: true, recursive: true });
|
|
141872
141868
|
}
|
|
141873
141869
|
/**
|
|
141874
141870
|
* Clear the cache
|
|
141875
141871
|
*/
|
|
141876
141872
|
clear() {
|
|
141877
|
-
(0,
|
|
141878
|
-
(0,
|
|
141873
|
+
(0, import_node_fs8.readdirSync)(this.cacheDir).forEach((cacheFile) => {
|
|
141874
|
+
(0, import_node_fs8.rmSync)(cacheFile, { force: true, recursive: true });
|
|
141879
141875
|
});
|
|
141880
141876
|
}
|
|
141881
141877
|
/**
|
|
@@ -141885,7 +141881,7 @@ var WorkspaceStorage = class {
|
|
|
141885
141881
|
* @returns The key at the index
|
|
141886
141882
|
*/
|
|
141887
141883
|
key(index) {
|
|
141888
|
-
const files = (0,
|
|
141884
|
+
const files = (0, import_node_fs8.readdirSync)(this.cacheDir);
|
|
141889
141885
|
if (index < files.length && index >= 0) {
|
|
141890
141886
|
return files[index];
|
|
141891
141887
|
}
|