@storm-software/workspace-tools 1.31.10 → 1.31.11
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 +7 -0
- package/README.md +1 -1
- package/index.js +13 -16
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +8 -11
- package/src/executors/design-tokens/executor.js +7 -10
- package/src/executors/tsup/executor.js +9 -12
- package/src/executors/tsup-browser/executor.js +9 -12
- package/src/executors/tsup-neutral/executor.js +9 -12
- package/src/executors/tsup-node/executor.js +9 -12
- package/src/generators/browser-library/generator.js +6 -9
- package/src/generators/config-schema/generator.js +8 -11
- package/src/generators/neutral-library/generator.js +6 -9
- package/src/generators/node-library/generator.js +6 -9
- package/src/generators/preset/generator.js +6 -9
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -11786,7 +11786,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
11786
11786
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
11787
11787
|
let license = DefaultStormConfig.license;
|
|
11788
11788
|
let homepage = DefaultStormConfig.homepage;
|
|
11789
|
-
const workspaceRoot =
|
|
11789
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
11790
|
+
if (typeof workspaceRoot !== "string") {
|
|
11791
|
+
throw new Error("Could not find workspace root");
|
|
11792
|
+
}
|
|
11790
11793
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
11791
11794
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
11792
11795
|
encoding: "utf-8"
|
|
@@ -11814,12 +11817,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
11814
11817
|
})
|
|
11815
11818
|
);
|
|
11816
11819
|
};
|
|
11817
|
-
var getWorkspaceRoot = () => {
|
|
11818
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
11819
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
11820
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
11821
|
-
return root?.dir;
|
|
11822
|
-
};
|
|
11823
11820
|
|
|
11824
11821
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
11825
11822
|
var getLogLevel = (label) => {
|
|
@@ -12005,7 +12002,7 @@ var chalk = __toESM(require_source());
|
|
|
12005
12002
|
|
|
12006
12003
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
12007
12004
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
12008
|
-
var
|
|
12005
|
+
var getWorkspaceRoot = () => {
|
|
12009
12006
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
12010
12007
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
12011
12008
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -12057,7 +12054,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
|
|
|
12057
12054
|
if (result.includes("{workspaceRoot}")) {
|
|
12058
12055
|
result = result.replaceAll(
|
|
12059
12056
|
"{workspaceRoot}",
|
|
12060
|
-
tokenizerOptions.workspaceRoot ??
|
|
12057
|
+
tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
|
|
12061
12058
|
);
|
|
12062
12059
|
}
|
|
12063
12060
|
return result;
|
|
@@ -12083,7 +12080,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
12083
12080
|
if (result.includes("{workspaceRoot}")) {
|
|
12084
12081
|
result = result.replaceAll(
|
|
12085
12082
|
"{workspaceRoot}",
|
|
12086
|
-
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ??
|
|
12083
|
+
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
|
|
12087
12084
|
);
|
|
12088
12085
|
}
|
|
12089
12086
|
return result;
|
|
@@ -12131,7 +12128,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
12131
12128
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
12132
12129
|
);
|
|
12133
12130
|
}
|
|
12134
|
-
const workspaceRoot =
|
|
12131
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
12135
12132
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
12136
12133
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
12137
12134
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
@@ -65155,7 +65155,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
65155
65155
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
65156
65156
|
let license = DefaultStormConfig.license;
|
|
65157
65157
|
let homepage = DefaultStormConfig.homepage;
|
|
65158
|
-
const workspaceRoot =
|
|
65158
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
65159
|
+
if (typeof workspaceRoot !== "string") {
|
|
65160
|
+
throw new Error("Could not find workspace root");
|
|
65161
|
+
}
|
|
65159
65162
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
65160
65163
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
65161
65164
|
encoding: "utf-8"
|
|
@@ -65183,12 +65186,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
65183
65186
|
})
|
|
65184
65187
|
);
|
|
65185
65188
|
};
|
|
65186
|
-
var getWorkspaceRoot = () => {
|
|
65187
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
65188
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
65189
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
65190
|
-
return root?.dir;
|
|
65191
|
-
};
|
|
65192
65189
|
|
|
65193
65190
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
65194
65191
|
var getLogLevel = (label) => {
|
|
@@ -65374,7 +65371,7 @@ var chalk = __toESM(require_source());
|
|
|
65374
65371
|
|
|
65375
65372
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
65376
65373
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
65377
|
-
var
|
|
65374
|
+
var getWorkspaceRoot = () => {
|
|
65378
65375
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
65379
65376
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
65380
65377
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -65426,7 +65423,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
|
|
|
65426
65423
|
if (result.includes("{workspaceRoot}")) {
|
|
65427
65424
|
result = result.replaceAll(
|
|
65428
65425
|
"{workspaceRoot}",
|
|
65429
|
-
tokenizerOptions.workspaceRoot ??
|
|
65426
|
+
tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
|
|
65430
65427
|
);
|
|
65431
65428
|
}
|
|
65432
65429
|
return result;
|
|
@@ -65474,7 +65471,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
65474
65471
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
65475
65472
|
);
|
|
65476
65473
|
}
|
|
65477
|
-
const workspaceRoot =
|
|
65474
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
65478
65475
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
65479
65476
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
65480
65477
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
@@ -116185,7 +116185,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
116185
116185
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
116186
116186
|
let license = DefaultStormConfig.license;
|
|
116187
116187
|
let homepage = DefaultStormConfig.homepage;
|
|
116188
|
-
const workspaceRoot =
|
|
116188
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
116189
|
+
if (typeof workspaceRoot !== "string") {
|
|
116190
|
+
throw new Error("Could not find workspace root");
|
|
116191
|
+
}
|
|
116189
116192
|
if ((0, import_fs2.existsSync)((0, import_path2.join)(workspaceRoot, "package.json"))) {
|
|
116190
116193
|
const file = (0, import_fs2.readFileSync)((0, import_path2.join)(workspaceRoot, "package.json"), {
|
|
116191
116194
|
encoding: "utf-8"
|
|
@@ -116213,12 +116216,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
116213
116216
|
})
|
|
116214
116217
|
);
|
|
116215
116218
|
};
|
|
116216
|
-
var getWorkspaceRoot = () => {
|
|
116217
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
116218
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
116219
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
116220
|
-
return root?.dir;
|
|
116221
|
-
};
|
|
116222
116219
|
|
|
116223
116220
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
116224
116221
|
var getLogLevel = (label) => {
|
|
@@ -116404,7 +116401,7 @@ var chalk = __toESM(require_source());
|
|
|
116404
116401
|
|
|
116405
116402
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
116406
116403
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
116407
|
-
var
|
|
116404
|
+
var getWorkspaceRoot = () => {
|
|
116408
116405
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
116409
116406
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
116410
116407
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -116456,7 +116453,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
|
|
|
116456
116453
|
if (result.includes("{workspaceRoot}")) {
|
|
116457
116454
|
result = result.replaceAll(
|
|
116458
116455
|
"{workspaceRoot}",
|
|
116459
|
-
tokenizerOptions.workspaceRoot ??
|
|
116456
|
+
tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
|
|
116460
116457
|
);
|
|
116461
116458
|
}
|
|
116462
116459
|
return result;
|
|
@@ -116504,7 +116501,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
116504
116501
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
116505
116502
|
);
|
|
116506
116503
|
}
|
|
116507
|
-
const workspaceRoot =
|
|
116504
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
116508
116505
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
116509
116506
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
116510
116507
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
@@ -116610,7 +116607,7 @@ var removeExtension = (filePath) => {
|
|
|
116610
116607
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
116611
116608
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
116612
116609
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
116613
|
-
|
|
116610
|
+
getWorkspaceRoot()
|
|
116614
116611
|
);
|
|
116615
116612
|
|
|
116616
116613
|
// packages/workspace-tools/src/utils/get-project-deps.ts
|
|
@@ -116833,7 +116830,7 @@ ${Object.keys(options).map(
|
|
|
116833
116830
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
116834
116831
|
);
|
|
116835
116832
|
}
|
|
116836
|
-
const workspaceRoot =
|
|
116833
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
116837
116834
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
116838
116835
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
116839
116836
|
if (options.clean !== false) {
|
|
@@ -109951,7 +109951,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
109951
109951
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
109952
109952
|
let license = DefaultStormConfig.license;
|
|
109953
109953
|
let homepage = DefaultStormConfig.homepage;
|
|
109954
|
-
const workspaceRoot =
|
|
109954
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
109955
|
+
if (typeof workspaceRoot !== "string") {
|
|
109956
|
+
throw new Error("Could not find workspace root");
|
|
109957
|
+
}
|
|
109955
109958
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
109956
109959
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
109957
109960
|
encoding: "utf-8"
|
|
@@ -109979,12 +109982,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
109979
109982
|
})
|
|
109980
109983
|
);
|
|
109981
109984
|
};
|
|
109982
|
-
var getWorkspaceRoot = () => {
|
|
109983
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
109984
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
109985
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
109986
|
-
return root?.dir;
|
|
109987
|
-
};
|
|
109988
109985
|
|
|
109989
109986
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
109990
109987
|
var getLogLevel = (label) => {
|
|
@@ -110170,7 +110167,7 @@ var chalk = __toESM(require_source());
|
|
|
110170
110167
|
|
|
110171
110168
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
110172
110169
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
110173
|
-
var
|
|
110170
|
+
var getWorkspaceRoot = () => {
|
|
110174
110171
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
110175
110172
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
110176
110173
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -110222,7 +110219,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
|
|
|
110222
110219
|
if (result.includes("{workspaceRoot}")) {
|
|
110223
110220
|
result = result.replaceAll(
|
|
110224
110221
|
"{workspaceRoot}",
|
|
110225
|
-
tokenizerOptions.workspaceRoot ??
|
|
110222
|
+
tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
|
|
110226
110223
|
);
|
|
110227
110224
|
}
|
|
110228
110225
|
return result;
|
|
@@ -110270,7 +110267,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
110270
110267
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
110271
110268
|
);
|
|
110272
110269
|
}
|
|
110273
|
-
const workspaceRoot =
|
|
110270
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
110274
110271
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
110275
110272
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
110276
110273
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
@@ -116641,7 +116638,7 @@ var removeExtension = (filePath) => {
|
|
|
116641
116638
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
116642
116639
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
116643
116640
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
116644
|
-
|
|
116641
|
+
getWorkspaceRoot()
|
|
116645
116642
|
);
|
|
116646
116643
|
|
|
116647
116644
|
// packages/workspace-tools/src/utils/get-project-deps.ts
|
|
@@ -116864,7 +116861,7 @@ ${Object.keys(options).map(
|
|
|
116864
116861
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
116865
116862
|
);
|
|
116866
116863
|
}
|
|
116867
|
-
const workspaceRoot =
|
|
116864
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
116868
116865
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
116869
116866
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
116870
116867
|
if (options.clean !== false) {
|
|
@@ -109951,7 +109951,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
109951
109951
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
109952
109952
|
let license = DefaultStormConfig.license;
|
|
109953
109953
|
let homepage = DefaultStormConfig.homepage;
|
|
109954
|
-
const workspaceRoot =
|
|
109954
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
109955
|
+
if (typeof workspaceRoot !== "string") {
|
|
109956
|
+
throw new Error("Could not find workspace root");
|
|
109957
|
+
}
|
|
109955
109958
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
109956
109959
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
109957
109960
|
encoding: "utf-8"
|
|
@@ -109979,12 +109982,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
109979
109982
|
})
|
|
109980
109983
|
);
|
|
109981
109984
|
};
|
|
109982
|
-
var getWorkspaceRoot = () => {
|
|
109983
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
109984
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
109985
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
109986
|
-
return root?.dir;
|
|
109987
|
-
};
|
|
109988
109985
|
|
|
109989
109986
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
109990
109987
|
var getLogLevel = (label) => {
|
|
@@ -110170,7 +110167,7 @@ var chalk = __toESM(require_source());
|
|
|
110170
110167
|
|
|
110171
110168
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
110172
110169
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
110173
|
-
var
|
|
110170
|
+
var getWorkspaceRoot = () => {
|
|
110174
110171
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
110175
110172
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
110176
110173
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -110222,7 +110219,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
|
|
|
110222
110219
|
if (result.includes("{workspaceRoot}")) {
|
|
110223
110220
|
result = result.replaceAll(
|
|
110224
110221
|
"{workspaceRoot}",
|
|
110225
|
-
tokenizerOptions.workspaceRoot ??
|
|
110222
|
+
tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
|
|
110226
110223
|
);
|
|
110227
110224
|
}
|
|
110228
110225
|
return result;
|
|
@@ -110270,7 +110267,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
110270
110267
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
110271
110268
|
);
|
|
110272
110269
|
}
|
|
110273
|
-
const workspaceRoot =
|
|
110270
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
110274
110271
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
110275
110272
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
110276
110273
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
@@ -116641,7 +116638,7 @@ var removeExtension = (filePath) => {
|
|
|
116641
116638
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
116642
116639
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
116643
116640
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
116644
|
-
|
|
116641
|
+
getWorkspaceRoot()
|
|
116645
116642
|
);
|
|
116646
116643
|
|
|
116647
116644
|
// packages/workspace-tools/src/utils/get-project-deps.ts
|
|
@@ -116864,7 +116861,7 @@ ${Object.keys(options).map(
|
|
|
116864
116861
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
116865
116862
|
);
|
|
116866
116863
|
}
|
|
116867
|
-
const workspaceRoot =
|
|
116864
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
116868
116865
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
116869
116866
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
116870
116867
|
if (options.clean !== false) {
|
|
@@ -109951,7 +109951,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
109951
109951
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
109952
109952
|
let license = DefaultStormConfig.license;
|
|
109953
109953
|
let homepage = DefaultStormConfig.homepage;
|
|
109954
|
-
const workspaceRoot =
|
|
109954
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
109955
|
+
if (typeof workspaceRoot !== "string") {
|
|
109956
|
+
throw new Error("Could not find workspace root");
|
|
109957
|
+
}
|
|
109955
109958
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
109956
109959
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
109957
109960
|
encoding: "utf-8"
|
|
@@ -109979,12 +109982,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
109979
109982
|
})
|
|
109980
109983
|
);
|
|
109981
109984
|
};
|
|
109982
|
-
var getWorkspaceRoot = () => {
|
|
109983
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
109984
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
109985
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
109986
|
-
return root?.dir;
|
|
109987
|
-
};
|
|
109988
109985
|
|
|
109989
109986
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
109990
109987
|
var getLogLevel = (label) => {
|
|
@@ -110170,7 +110167,7 @@ var chalk = __toESM(require_source());
|
|
|
110170
110167
|
|
|
110171
110168
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
110172
110169
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
110173
|
-
var
|
|
110170
|
+
var getWorkspaceRoot = () => {
|
|
110174
110171
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
110175
110172
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
110176
110173
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -110222,7 +110219,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
|
|
|
110222
110219
|
if (result.includes("{workspaceRoot}")) {
|
|
110223
110220
|
result = result.replaceAll(
|
|
110224
110221
|
"{workspaceRoot}",
|
|
110225
|
-
tokenizerOptions.workspaceRoot ??
|
|
110222
|
+
tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
|
|
110226
110223
|
);
|
|
110227
110224
|
}
|
|
110228
110225
|
return result;
|
|
@@ -110270,7 +110267,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
110270
110267
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
110271
110268
|
);
|
|
110272
110269
|
}
|
|
110273
|
-
const workspaceRoot =
|
|
110270
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
110274
110271
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
110275
110272
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
110276
110273
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
@@ -116641,7 +116638,7 @@ var removeExtension = (filePath) => {
|
|
|
116641
116638
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
116642
116639
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
116643
116640
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
116644
|
-
|
|
116641
|
+
getWorkspaceRoot()
|
|
116645
116642
|
);
|
|
116646
116643
|
|
|
116647
116644
|
// packages/workspace-tools/src/utils/get-project-deps.ts
|
|
@@ -116864,7 +116861,7 @@ ${Object.keys(options).map(
|
|
|
116864
116861
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
116865
116862
|
);
|
|
116866
116863
|
}
|
|
116867
|
-
const workspaceRoot =
|
|
116864
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
116868
116865
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
116869
116866
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
116870
116867
|
if (options.clean !== false) {
|
|
@@ -47232,7 +47232,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47232
47232
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
47233
47233
|
let license = DefaultStormConfig.license;
|
|
47234
47234
|
let homepage = DefaultStormConfig.homepage;
|
|
47235
|
-
const workspaceRoot =
|
|
47235
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
47236
|
+
if (typeof workspaceRoot !== "string") {
|
|
47237
|
+
throw new Error("Could not find workspace root");
|
|
47238
|
+
}
|
|
47236
47239
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
47237
47240
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
47238
47241
|
encoding: "utf-8"
|
|
@@ -47260,12 +47263,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47260
47263
|
})
|
|
47261
47264
|
);
|
|
47262
47265
|
};
|
|
47263
|
-
var getWorkspaceRoot = () => {
|
|
47264
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
47265
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
47266
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
47267
|
-
return root?.dir;
|
|
47268
|
-
};
|
|
47269
47266
|
|
|
47270
47267
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
47271
47268
|
var getLogLevel = (label) => {
|
|
@@ -47451,7 +47448,7 @@ var chalk = __toESM(require_source());
|
|
|
47451
47448
|
|
|
47452
47449
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
47453
47450
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
47454
|
-
var
|
|
47451
|
+
var getWorkspaceRoot = () => {
|
|
47455
47452
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
47456
47453
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
47457
47454
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -47480,7 +47477,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
47480
47477
|
if (result.includes("{workspaceRoot}")) {
|
|
47481
47478
|
result = result.replaceAll(
|
|
47482
47479
|
"{workspaceRoot}",
|
|
47483
|
-
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ??
|
|
47480
|
+
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
|
|
47484
47481
|
);
|
|
47485
47482
|
}
|
|
47486
47483
|
return result;
|
|
@@ -29990,7 +29990,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
29990
29990
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
29991
29991
|
let license = DefaultStormConfig.license;
|
|
29992
29992
|
let homepage = DefaultStormConfig.homepage;
|
|
29993
|
-
const workspaceRoot =
|
|
29993
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
29994
|
+
if (typeof workspaceRoot !== "string") {
|
|
29995
|
+
throw new Error("Could not find workspace root");
|
|
29996
|
+
}
|
|
29994
29997
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
29995
29998
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
29996
29999
|
encoding: "utf-8"
|
|
@@ -30018,12 +30021,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
30018
30021
|
})
|
|
30019
30022
|
);
|
|
30020
30023
|
};
|
|
30021
|
-
var getWorkspaceRoot = () => {
|
|
30022
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
30023
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
30024
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
30025
|
-
return root?.dir;
|
|
30026
|
-
};
|
|
30027
30024
|
|
|
30028
30025
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
30029
30026
|
var getLogLevel = (label) => {
|
|
@@ -31224,7 +31221,7 @@ var chalk = __toESM(require_source());
|
|
|
31224
31221
|
|
|
31225
31222
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
31226
31223
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
31227
|
-
var
|
|
31224
|
+
var getWorkspaceRoot = () => {
|
|
31228
31225
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
31229
31226
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
31230
31227
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -31253,7 +31250,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
31253
31250
|
if (result.includes("{workspaceRoot}")) {
|
|
31254
31251
|
result = result.replaceAll(
|
|
31255
31252
|
"{workspaceRoot}",
|
|
31256
|
-
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ??
|
|
31253
|
+
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
|
|
31257
31254
|
);
|
|
31258
31255
|
}
|
|
31259
31256
|
return result;
|
|
@@ -31380,13 +31377,13 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
31380
31377
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
31381
31378
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
31382
31379
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
31383
|
-
|
|
31380
|
+
getWorkspaceRoot()
|
|
31384
31381
|
);
|
|
31385
31382
|
|
|
31386
31383
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
31387
31384
|
async function configSchemaGeneratorFn(tree, options) {
|
|
31388
31385
|
const projectConfigurations = getProjectConfigurations();
|
|
31389
|
-
const workspaceRoot =
|
|
31386
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
31390
31387
|
const modules = await Promise.all(
|
|
31391
31388
|
Object.keys(projectConfigurations).map(async (key) => {
|
|
31392
31389
|
if (projectConfigurations[key]?.config) {
|
|
@@ -47232,7 +47232,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47232
47232
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
47233
47233
|
let license = DefaultStormConfig.license;
|
|
47234
47234
|
let homepage = DefaultStormConfig.homepage;
|
|
47235
|
-
const workspaceRoot =
|
|
47235
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
47236
|
+
if (typeof workspaceRoot !== "string") {
|
|
47237
|
+
throw new Error("Could not find workspace root");
|
|
47238
|
+
}
|
|
47236
47239
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
47237
47240
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
47238
47241
|
encoding: "utf-8"
|
|
@@ -47260,12 +47263,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47260
47263
|
})
|
|
47261
47264
|
);
|
|
47262
47265
|
};
|
|
47263
|
-
var getWorkspaceRoot = () => {
|
|
47264
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
47265
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
47266
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
47267
|
-
return root?.dir;
|
|
47268
|
-
};
|
|
47269
47266
|
|
|
47270
47267
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
47271
47268
|
var getLogLevel = (label) => {
|
|
@@ -47451,7 +47448,7 @@ var chalk = __toESM(require_source());
|
|
|
47451
47448
|
|
|
47452
47449
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
47453
47450
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
47454
|
-
var
|
|
47451
|
+
var getWorkspaceRoot = () => {
|
|
47455
47452
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
47456
47453
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
47457
47454
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -47480,7 +47477,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
47480
47477
|
if (result.includes("{workspaceRoot}")) {
|
|
47481
47478
|
result = result.replaceAll(
|
|
47482
47479
|
"{workspaceRoot}",
|
|
47483
|
-
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ??
|
|
47480
|
+
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
|
|
47484
47481
|
);
|
|
47485
47482
|
}
|
|
47486
47483
|
return result;
|
|
@@ -47232,7 +47232,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47232
47232
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
47233
47233
|
let license = DefaultStormConfig.license;
|
|
47234
47234
|
let homepage = DefaultStormConfig.homepage;
|
|
47235
|
-
const workspaceRoot =
|
|
47235
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
47236
|
+
if (typeof workspaceRoot !== "string") {
|
|
47237
|
+
throw new Error("Could not find workspace root");
|
|
47238
|
+
}
|
|
47236
47239
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
47237
47240
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
47238
47241
|
encoding: "utf-8"
|
|
@@ -47260,12 +47263,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
47260
47263
|
})
|
|
47261
47264
|
);
|
|
47262
47265
|
};
|
|
47263
|
-
var getWorkspaceRoot = () => {
|
|
47264
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
47265
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
47266
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
47267
|
-
return root?.dir;
|
|
47268
|
-
};
|
|
47269
47266
|
|
|
47270
47267
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
47271
47268
|
var getLogLevel = (label) => {
|
|
@@ -47451,7 +47448,7 @@ var chalk = __toESM(require_source());
|
|
|
47451
47448
|
|
|
47452
47449
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
47453
47450
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
47454
|
-
var
|
|
47451
|
+
var getWorkspaceRoot = () => {
|
|
47455
47452
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
47456
47453
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
47457
47454
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -47480,7 +47477,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
47480
47477
|
if (result.includes("{workspaceRoot}")) {
|
|
47481
47478
|
result = result.replaceAll(
|
|
47482
47479
|
"{workspaceRoot}",
|
|
47483
|
-
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ??
|
|
47480
|
+
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
|
|
47484
47481
|
);
|
|
47485
47482
|
}
|
|
47486
47483
|
return result;
|
|
@@ -29991,7 +29991,10 @@ var getDefaultConfig = (config = {}) => {
|
|
|
29991
29991
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
29992
29992
|
let license = DefaultStormConfig.license;
|
|
29993
29993
|
let homepage = DefaultStormConfig.homepage;
|
|
29994
|
-
const workspaceRoot =
|
|
29994
|
+
const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
29995
|
+
if (typeof workspaceRoot !== "string") {
|
|
29996
|
+
throw new Error("Could not find workspace root");
|
|
29997
|
+
}
|
|
29995
29998
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
29996
29999
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
29997
30000
|
encoding: "utf-8"
|
|
@@ -30019,12 +30022,6 @@ var getDefaultConfig = (config = {}) => {
|
|
|
30019
30022
|
})
|
|
30020
30023
|
);
|
|
30021
30024
|
};
|
|
30022
|
-
var getWorkspaceRoot = () => {
|
|
30023
|
-
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
30024
|
-
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
30025
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
30026
|
-
return root?.dir;
|
|
30027
|
-
};
|
|
30028
30025
|
|
|
30029
30026
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
30030
30027
|
var getLogLevel = (label) => {
|
|
@@ -30210,7 +30207,7 @@ var chalk = __toESM(require_source());
|
|
|
30210
30207
|
|
|
30211
30208
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
30212
30209
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
30213
|
-
var
|
|
30210
|
+
var getWorkspaceRoot = () => {
|
|
30214
30211
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
30215
30212
|
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
30216
30213
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
@@ -30239,7 +30236,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
|
|
|
30239
30236
|
if (result.includes("{workspaceRoot}")) {
|
|
30240
30237
|
result = result.replaceAll(
|
|
30241
30238
|
"{workspaceRoot}",
|
|
30242
|
-
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ??
|
|
30239
|
+
tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
|
|
30243
30240
|
);
|
|
30244
30241
|
}
|
|
30245
30242
|
return result;
|