@storm-software/workspace-tools 1.61.0 → 1.62.1
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 +29 -0
- package/index.js +149 -147
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +109 -110
- package/src/executors/tsup/executor.js +123 -121
- package/src/executors/tsup-browser/executor.js +123 -121
- package/src/executors/tsup-neutral/executor.js +123 -121
- package/src/executors/tsup-node/executor.js +123 -121
- package/src/executors/typia/executor.js +19 -20
- package/src/generators/browser-library/generator.js +109 -110
- package/src/generators/config-schema/generator.js +19 -20
- package/src/generators/neutral-library/generator.js +109 -110
- package/src/generators/node-library/generator.js +109 -110
- package/src/generators/preset/generator.js +19 -20
- package/src/generators/release-version/generator.js +27 -28
- package/src/utils/index.js +36 -32
|
@@ -171997,7 +171997,7 @@ var init_find_workspace_root = __esm({
|
|
|
171997
171997
|
"packages/config-tools/src/utilities/find-workspace-root.ts"() {
|
|
171998
171998
|
init_find_up();
|
|
171999
171999
|
rootFiles = [
|
|
172000
|
-
"
|
|
172000
|
+
"storm.json",
|
|
172001
172001
|
"storm.config.js",
|
|
172002
172002
|
"storm.config.ts",
|
|
172003
172003
|
".storm.json",
|
|
@@ -172005,6 +172005,7 @@ var init_find_workspace_root = __esm({
|
|
|
172005
172005
|
".storm.yml",
|
|
172006
172006
|
".storm.js",
|
|
172007
172007
|
".storm.ts",
|
|
172008
|
+
"lerna.json",
|
|
172008
172009
|
"nx.json",
|
|
172009
172010
|
"turbo.json",
|
|
172010
172011
|
"npm-workspace.json",
|
|
@@ -381843,25 +381844,23 @@ var init_get_config_file = __esm({
|
|
|
381843
381844
|
} : { config: {}, filepath: jsonPath, isEmpty };
|
|
381844
381845
|
};
|
|
381845
381846
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
381846
|
-
const workspacePath = filePath ? filePath :
|
|
381847
|
-
|
|
381848
|
-
|
|
381849
|
-
|
|
381850
|
-
|
|
381851
|
-
|
|
381852
|
-
|
|
381853
|
-
|
|
381854
|
-
|
|
381855
|
-
|
|
381856
|
-
|
|
381857
|
-
|
|
381858
|
-
|
|
381859
|
-
|
|
381860
|
-
|
|
381861
|
-
|
|
381862
|
-
|
|
381863
|
-
break;
|
|
381864
|
-
}
|
|
381847
|
+
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
381848
|
+
if (!defaultExplorer) {
|
|
381849
|
+
defaultExplorer = await getConfigFileExplorer("storm");
|
|
381850
|
+
}
|
|
381851
|
+
let cosmiconfigResult = null;
|
|
381852
|
+
if (defaultExplorer) {
|
|
381853
|
+
cosmiconfigResult = await defaultExplorer.search(workspacePath);
|
|
381854
|
+
}
|
|
381855
|
+
if ((!cosmiconfigResult || cosmiconfigResult.isEmpty) && additionalFileNames.length > 0) {
|
|
381856
|
+
for (const additionalFileName of additionalFileNames) {
|
|
381857
|
+
cosmiconfigResult = await getJsonConfigFile(additionalFileName, workspacePath);
|
|
381858
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
381859
|
+
break;
|
|
381860
|
+
}
|
|
381861
|
+
cosmiconfigResult = await getConfigFileByName(additionalFileName, workspacePath);
|
|
381862
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
381863
|
+
break;
|
|
381865
381864
|
}
|
|
381866
381865
|
}
|
|
381867
381866
|
}
|
|
@@ -171997,7 +171997,7 @@ var init_find_workspace_root = __esm({
|
|
|
171997
171997
|
"packages/config-tools/src/utilities/find-workspace-root.ts"() {
|
|
171998
171998
|
init_find_up();
|
|
171999
171999
|
rootFiles = [
|
|
172000
|
-
"
|
|
172000
|
+
"storm.json",
|
|
172001
172001
|
"storm.config.js",
|
|
172002
172002
|
"storm.config.ts",
|
|
172003
172003
|
".storm.json",
|
|
@@ -172005,6 +172005,7 @@ var init_find_workspace_root = __esm({
|
|
|
172005
172005
|
".storm.yml",
|
|
172006
172006
|
".storm.js",
|
|
172007
172007
|
".storm.ts",
|
|
172008
|
+
"lerna.json",
|
|
172008
172009
|
"nx.json",
|
|
172009
172010
|
"turbo.json",
|
|
172010
172011
|
"npm-workspace.json",
|
|
@@ -381843,25 +381844,23 @@ var init_get_config_file = __esm({
|
|
|
381843
381844
|
} : { config: {}, filepath: jsonPath, isEmpty };
|
|
381844
381845
|
};
|
|
381845
381846
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
381846
|
-
const workspacePath = filePath ? filePath :
|
|
381847
|
-
|
|
381848
|
-
|
|
381849
|
-
|
|
381850
|
-
|
|
381851
|
-
|
|
381852
|
-
|
|
381853
|
-
|
|
381854
|
-
|
|
381855
|
-
|
|
381856
|
-
|
|
381857
|
-
|
|
381858
|
-
|
|
381859
|
-
|
|
381860
|
-
|
|
381861
|
-
|
|
381862
|
-
|
|
381863
|
-
break;
|
|
381864
|
-
}
|
|
381847
|
+
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
381848
|
+
if (!defaultExplorer) {
|
|
381849
|
+
defaultExplorer = await getConfigFileExplorer("storm");
|
|
381850
|
+
}
|
|
381851
|
+
let cosmiconfigResult = null;
|
|
381852
|
+
if (defaultExplorer) {
|
|
381853
|
+
cosmiconfigResult = await defaultExplorer.search(workspacePath);
|
|
381854
|
+
}
|
|
381855
|
+
if ((!cosmiconfigResult || cosmiconfigResult.isEmpty) && additionalFileNames.length > 0) {
|
|
381856
|
+
for (const additionalFileName of additionalFileNames) {
|
|
381857
|
+
cosmiconfigResult = await getJsonConfigFile(additionalFileName, workspacePath);
|
|
381858
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
381859
|
+
break;
|
|
381860
|
+
}
|
|
381861
|
+
cosmiconfigResult = await getConfigFileByName(additionalFileName, workspacePath);
|
|
381862
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
381863
|
+
break;
|
|
381865
381864
|
}
|
|
381866
381865
|
}
|
|
381867
381866
|
}
|
|
@@ -386452,9 +386451,9 @@ var init_src2 = __esm({
|
|
|
386452
386451
|
}
|
|
386453
386452
|
});
|
|
386454
386453
|
|
|
386455
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
386454
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js
|
|
386456
386455
|
var require_update_lock_file = __commonJS({
|
|
386457
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
386456
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js"(exports2) {
|
|
386458
386457
|
"use strict";
|
|
386459
386458
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
386460
386459
|
exports2.updateLockFile = void 0;
|
|
@@ -386546,9 +386545,9 @@ var require_update_lock_file = __commonJS({
|
|
|
386546
386545
|
}
|
|
386547
386546
|
});
|
|
386548
386547
|
|
|
386549
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
386548
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/package.js
|
|
386550
386549
|
var require_package4 = __commonJS({
|
|
386551
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
386550
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/package.js"(exports2) {
|
|
386552
386551
|
"use strict";
|
|
386553
386552
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
386554
386553
|
exports2.Package = void 0;
|
|
@@ -388817,9 +388816,9 @@ var require_npa = __commonJS({
|
|
|
388817
388816
|
}
|
|
388818
388817
|
});
|
|
388819
388818
|
|
|
388820
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
388819
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js
|
|
388821
388820
|
var require_resolve_version_spec = __commonJS({
|
|
388822
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
388821
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js"(exports2) {
|
|
388823
388822
|
"use strict";
|
|
388824
388823
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
388825
388824
|
exports2.resolveVersionSpec = void 0;
|
|
@@ -388845,9 +388844,9 @@ var require_resolve_version_spec = __commonJS({
|
|
|
388845
388844
|
}
|
|
388846
388845
|
});
|
|
388847
388846
|
|
|
388848
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
388847
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js
|
|
388849
388848
|
var require_resolve_local_package_dependencies = __commonJS({
|
|
388850
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
388849
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js"(exports2) {
|
|
388851
388850
|
"use strict";
|
|
388852
388851
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
388853
388852
|
exports2.resolveLocalPackageDependencies = void 0;
|
package/src/utils/index.js
CHANGED
|
@@ -397239,9 +397239,9 @@ var require_devkit = __commonJS({
|
|
|
397239
397239
|
}
|
|
397240
397240
|
});
|
|
397241
397241
|
|
|
397242
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
397242
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/utils/typescript/load-ts-transformers.js
|
|
397243
397243
|
var require_load_ts_transformers = __commonJS({
|
|
397244
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
397244
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/utils/typescript/load-ts-transformers.js"(exports2, module2) {
|
|
397245
397245
|
"use strict";
|
|
397246
397246
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
397247
397247
|
exports2.loadTsTransformers = void 0;
|
|
@@ -397306,9 +397306,9 @@ var require_load_ts_transformers = __commonJS({
|
|
|
397306
397306
|
}
|
|
397307
397307
|
});
|
|
397308
397308
|
|
|
397309
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
397309
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/executors/tsc/lib/get-custom-transformers-factory.js
|
|
397310
397310
|
var require_get_custom_transformers_factory = __commonJS({
|
|
397311
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
397311
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/executors/tsc/lib/get-custom-transformers-factory.js"(exports2) {
|
|
397312
397312
|
"use strict";
|
|
397313
397313
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
397314
397314
|
exports2.getCustomTrasformersFactory = void 0;
|
|
@@ -399870,9 +399870,9 @@ var require_out8 = __commonJS({
|
|
|
399870
399870
|
}
|
|
399871
399871
|
});
|
|
399872
399872
|
|
|
399873
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
399873
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/utils/assets/assets.js
|
|
399874
399874
|
var require_assets = __commonJS({
|
|
399875
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
399875
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/utils/assets/assets.js"(exports2) {
|
|
399876
399876
|
"use strict";
|
|
399877
399877
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
399878
399878
|
exports2.assetGlobsToFiles = void 0;
|
|
@@ -399911,9 +399911,9 @@ var require_assets = __commonJS({
|
|
|
399911
399911
|
}
|
|
399912
399912
|
});
|
|
399913
399913
|
|
|
399914
|
-
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
399914
|
+
// node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/executors/tsc/lib/normalize-options.js
|
|
399915
399915
|
var require_normalize_options = __commonJS({
|
|
399916
|
-
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.
|
|
399916
|
+
"node_modules/.pnpm/@nx+js@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.2_@swc+wasm@1.4.2_@types+node@20.11.20_n_rxzlxl4elx7wiiidhdla5wvhle/node_modules/@nx/js/src/executors/tsc/lib/normalize-options.js"(exports2) {
|
|
399917
399917
|
"use strict";
|
|
399918
399918
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
399919
399919
|
exports2.normalizeOptions = void 0;
|
|
@@ -399948,9 +399948,9 @@ var require_normalize_options = __commonJS({
|
|
|
399948
399948
|
}
|
|
399949
399949
|
});
|
|
399950
399950
|
|
|
399951
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
399951
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
399952
399952
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
399953
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
399953
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
|
|
399954
399954
|
"use strict";
|
|
399955
399955
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
399956
399956
|
var version = "8.0.0";
|
|
@@ -401597,9 +401597,9 @@ var require_resolve_from = __commonJS({
|
|
|
401597
401597
|
}
|
|
401598
401598
|
});
|
|
401599
401599
|
|
|
401600
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401600
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
401601
401601
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
401602
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401602
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
|
|
401603
401603
|
"use strict";
|
|
401604
401604
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
401605
401605
|
function _interopRequireDefault(obj) {
|
|
@@ -401877,9 +401877,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
401877
401877
|
}
|
|
401878
401878
|
});
|
|
401879
401879
|
|
|
401880
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401880
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
401881
401881
|
var require_chunk_UIX4URMV = __commonJS({
|
|
401882
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401882
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
|
|
401883
401883
|
"use strict";
|
|
401884
401884
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
401885
401885
|
function _interopRequireWildcard(obj) {
|
|
@@ -402813,9 +402813,9 @@ var require_dist3 = __commonJS({
|
|
|
402813
402813
|
}
|
|
402814
402814
|
});
|
|
402815
402815
|
|
|
402816
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
402816
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
402817
402817
|
var require_chunk_7G76EW2R = __commonJS({
|
|
402818
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
402818
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
|
|
402819
402819
|
"use strict";
|
|
402820
402820
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
402821
402821
|
function _interopRequireDefault(obj) {
|
|
@@ -453898,9 +453898,9 @@ var require_rollup2 = __commonJS({
|
|
|
453898
453898
|
}
|
|
453899
453899
|
});
|
|
453900
453900
|
|
|
453901
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
453901
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js
|
|
453902
453902
|
var require_dist6 = __commonJS({
|
|
453903
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
453903
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js"(exports2) {
|
|
453904
453904
|
"use strict";
|
|
453905
453905
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
453906
453906
|
function _interopRequireDefault(obj) {
|
|
@@ -456829,7 +456829,7 @@ function findFolderUp(startPath, endFileNames) {
|
|
|
456829
456829
|
|
|
456830
456830
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
456831
456831
|
var rootFiles = [
|
|
456832
|
-
"
|
|
456832
|
+
"storm.json",
|
|
456833
456833
|
"storm.config.js",
|
|
456834
456834
|
"storm.config.ts",
|
|
456835
456835
|
".storm.json",
|
|
@@ -456837,6 +456837,7 @@ var rootFiles = [
|
|
|
456837
456837
|
".storm.yml",
|
|
456838
456838
|
".storm.js",
|
|
456839
456839
|
".storm.ts",
|
|
456840
|
+
"lerna.json",
|
|
456840
456841
|
"nx.json",
|
|
456841
456842
|
"turbo.json",
|
|
456842
456843
|
"npm-workspace.json",
|
|
@@ -460953,7 +460954,14 @@ var applyWorkspaceTokens = (options8, config, tokenizerFn) => {
|
|
|
460953
460954
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
460954
460955
|
var import_node_path2 = require("node:path");
|
|
460955
460956
|
var removeExtension = (filePath) => {
|
|
460956
|
-
|
|
460957
|
+
const result = !filePath || (filePath.match(/./g) || []).length <= 1 ? "." : filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
460958
|
+
if (result.startsWith("./")) {
|
|
460959
|
+
return result.substring(2);
|
|
460960
|
+
}
|
|
460961
|
+
if (result.startsWith(".") || result.startsWith("/")) {
|
|
460962
|
+
return result.substring(1);
|
|
460963
|
+
}
|
|
460964
|
+
return result;
|
|
460957
460965
|
};
|
|
460958
460966
|
function findFileName(filePath) {
|
|
460959
460967
|
return filePath?.split(filePath?.includes(import_node_path2.sep) ? import_node_path2.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
@@ -461267,6 +461275,7 @@ var applyDefaultOptions = (options8) => {
|
|
|
461267
461275
|
return options8;
|
|
461268
461276
|
};
|
|
461269
461277
|
var runTsupBuild = async (context, config, options8) => {
|
|
461278
|
+
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
461270
461279
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
461271
461280
|
ret[key2] = options8.env?.[key2];
|
|
461272
461281
|
return ret;
|
|
@@ -461274,7 +461283,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
461274
461283
|
options8.plugins?.push(
|
|
461275
461284
|
(0, import_esbuild_decorators.esbuildDecorators)({
|
|
461276
461285
|
tsconfig: options8.tsConfig,
|
|
461277
|
-
cwd:
|
|
461286
|
+
cwd: workspaceRoot
|
|
461278
461287
|
})
|
|
461279
461288
|
);
|
|
461280
461289
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
@@ -461294,8 +461303,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
461294
461303
|
...stormEnv
|
|
461295
461304
|
},
|
|
461296
461305
|
dtsTsConfig: getNormalizedTsConfig(
|
|
461297
|
-
|
|
461298
|
-
config.workspaceRoot ?? ".",
|
|
461306
|
+
workspaceRoot,
|
|
461299
461307
|
options8.outputPath,
|
|
461300
461308
|
createTypeScriptCompilationOptions(
|
|
461301
461309
|
(0, import_normalize_options.normalizeOptions)(
|
|
@@ -461305,9 +461313,9 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
461305
461313
|
main: context.main,
|
|
461306
461314
|
transformers: []
|
|
461307
461315
|
},
|
|
461308
|
-
|
|
461316
|
+
workspaceRoot,
|
|
461309
461317
|
context.sourceRoot,
|
|
461310
|
-
|
|
461318
|
+
workspaceRoot
|
|
461311
461319
|
),
|
|
461312
461320
|
context.projectName
|
|
461313
461321
|
)
|
|
@@ -461330,7 +461338,7 @@ ${options8.banner}
|
|
|
461330
461338
|
const getConfigFns = [options8.getConfig];
|
|
461331
461339
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
461332
461340
|
getConfigFns.map(
|
|
461333
|
-
(getConfigFn) => getConfig(
|
|
461341
|
+
(getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
461334
461342
|
)
|
|
461335
461343
|
);
|
|
461336
461344
|
if (_isFunction(tsupConfig)) {
|
|
@@ -461346,19 +461354,15 @@ ${options8.banner}
|
|
|
461346
461354
|
);
|
|
461347
461355
|
}
|
|
461348
461356
|
};
|
|
461349
|
-
function getNormalizedTsConfig(
|
|
461357
|
+
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
461350
461358
|
const config = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile).config;
|
|
461351
461359
|
const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
461352
461360
|
{
|
|
461353
461361
|
...config,
|
|
461354
461362
|
compilerOptions: {
|
|
461355
461363
|
...config?.compilerOptions,
|
|
461356
|
-
|
|
461357
|
-
[removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
|
|
461358
|
-
},
|
|
461364
|
+
include: ["**/*"],
|
|
461359
461365
|
outDir: outputPath,
|
|
461360
|
-
rootDir: workspaceRoot,
|
|
461361
|
-
baseUrl: workspaceRoot,
|
|
461362
461366
|
noEmit: false,
|
|
461363
461367
|
esModuleInterop: true,
|
|
461364
461368
|
downlevelIteration: true,
|