@storm-software/workspace-tools 1.43.6 → 1.43.8
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 +15 -0
- package/index.js +57 -119
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +8 -69
- package/src/executors/design-tokens/executor.js +21 -82
- package/src/executors/tsup/executor.js +36 -98
- package/src/executors/tsup-browser/executor.js +36 -98
- package/src/executors/tsup-neutral/executor.js +36 -98
- package/src/executors/tsup-node/executor.js +36 -98
- package/src/generators/browser-library/generator.js +8 -69
- package/src/generators/config-schema/generator.js +6 -67
- package/src/generators/neutral-library/generator.js +8 -69
- package/src/generators/node-library/generator.js +8 -69
- package/src/generators/preset/generator.js +6 -67
|
@@ -34308,7 +34308,7 @@ var require_jsonfile = __commonJS({
|
|
|
34308
34308
|
return obj;
|
|
34309
34309
|
}
|
|
34310
34310
|
var readFile = universalify.fromPromise(_readFile);
|
|
34311
|
-
function
|
|
34311
|
+
function readFileSync(file, options = {}) {
|
|
34312
34312
|
if (typeof options === "string") {
|
|
34313
34313
|
options = { encoding: options };
|
|
34314
34314
|
}
|
|
@@ -34340,7 +34340,7 @@ var require_jsonfile = __commonJS({
|
|
|
34340
34340
|
}
|
|
34341
34341
|
var jsonfile = {
|
|
34342
34342
|
readFile,
|
|
34343
|
-
readFileSync
|
|
34343
|
+
readFileSync,
|
|
34344
34344
|
writeFile,
|
|
34345
34345
|
writeFileSync
|
|
34346
34346
|
};
|
|
@@ -43478,7 +43478,7 @@ var import_devkit2 = __toESM(require_devkit());
|
|
|
43478
43478
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
43479
43479
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
43480
43480
|
var _static_cache = void 0;
|
|
43481
|
-
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
43481
|
+
var getConfigFileName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
43482
43482
|
var getConfigFile = async (filePath) => {
|
|
43483
43483
|
if (_static_cache) {
|
|
43484
43484
|
return _static_cache;
|
|
@@ -43606,10 +43606,6 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
43606
43606
|
return result;
|
|
43607
43607
|
}
|
|
43608
43608
|
|
|
43609
|
-
// packages/config-tools/src/utilities/get-default-config.ts
|
|
43610
|
-
var import_node_fs2 = require("node:fs");
|
|
43611
|
-
var import_node_path2 = require("node:path");
|
|
43612
|
-
|
|
43613
43609
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
43614
43610
|
var util;
|
|
43615
43611
|
(function(util2) {
|
|
@@ -47270,51 +47266,6 @@ var DefaultStormConfig = {
|
|
|
47270
47266
|
colors: { ...DefaultColorConfig },
|
|
47271
47267
|
extensions: {}
|
|
47272
47268
|
};
|
|
47273
|
-
var getDefaultConfig = (config = {}, root) => {
|
|
47274
|
-
let name = "storm-workspace";
|
|
47275
|
-
let namespace = "storm-software";
|
|
47276
|
-
let repository = "https://github.com/storm-software/storm-ops";
|
|
47277
|
-
let license = DefaultStormConfig.license;
|
|
47278
|
-
let homepage = DefaultStormConfig.homepage;
|
|
47279
|
-
const workspaceRoot = findWorkspaceRoot(root);
|
|
47280
|
-
if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(workspaceRoot, "package.json"))) {
|
|
47281
|
-
const file = (0, import_node_fs2.readFileSync)((0, import_node_path2.join)(workspaceRoot, "package.json"), {
|
|
47282
|
-
encoding: "utf-8"
|
|
47283
|
-
});
|
|
47284
|
-
if (file) {
|
|
47285
|
-
const packageJson = JSON.parse(file);
|
|
47286
|
-
if (packageJson.name) {
|
|
47287
|
-
name = packageJson.name;
|
|
47288
|
-
}
|
|
47289
|
-
if (packageJson.namespace) {
|
|
47290
|
-
namespace = packageJson.namespace;
|
|
47291
|
-
}
|
|
47292
|
-
if (packageJson.repository?.url) {
|
|
47293
|
-
repository = packageJson.repository?.url;
|
|
47294
|
-
}
|
|
47295
|
-
if (packageJson.license) {
|
|
47296
|
-
license = packageJson.license;
|
|
47297
|
-
}
|
|
47298
|
-
if (packageJson.homepage) {
|
|
47299
|
-
homepage = packageJson.homepage;
|
|
47300
|
-
}
|
|
47301
|
-
}
|
|
47302
|
-
}
|
|
47303
|
-
return StormConfigSchema.parse({
|
|
47304
|
-
...config,
|
|
47305
|
-
...DefaultStormConfig,
|
|
47306
|
-
colors: { ...config.colors, ...DefaultColorConfig },
|
|
47307
|
-
workspaceRoot,
|
|
47308
|
-
name,
|
|
47309
|
-
namespace,
|
|
47310
|
-
repository,
|
|
47311
|
-
license: license ?? DefaultStormConfig.license,
|
|
47312
|
-
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
47313
|
-
extensions: {
|
|
47314
|
-
...config.extensions
|
|
47315
|
-
}
|
|
47316
|
-
});
|
|
47317
|
-
};
|
|
47318
47269
|
|
|
47319
47270
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
47320
47271
|
var getLogLevel = (label) => {
|
|
@@ -47494,7 +47445,6 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47494
47445
|
};
|
|
47495
47446
|
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
47496
47447
|
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
47497
|
-
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
47498
47448
|
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
47499
47449
|
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
47500
47450
|
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
@@ -47716,26 +47666,15 @@ var getConfigEnv = () => {
|
|
|
47716
47666
|
|
|
47717
47667
|
// packages/config-tools/src/create-storm-config.ts
|
|
47718
47668
|
var loadStormConfig = async (workspaceRoot) => {
|
|
47719
|
-
let config = {};
|
|
47720
47669
|
let _workspaceRoot = workspaceRoot;
|
|
47721
47670
|
if (!_workspaceRoot) {
|
|
47722
47671
|
_workspaceRoot = findWorkspaceRoot();
|
|
47723
47672
|
}
|
|
47724
|
-
const configFile =
|
|
47725
|
-
|
|
47726
|
-
|
|
47727
|
-
|
|
47728
|
-
|
|
47729
|
-
_workspaceRoot
|
|
47730
|
-
);
|
|
47731
|
-
if (configFile) {
|
|
47732
|
-
config = StormConfigSchema.parse(configFile);
|
|
47733
|
-
} else {
|
|
47734
|
-
writeWarning(
|
|
47735
|
-
config,
|
|
47736
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
|
|
47737
|
-
);
|
|
47738
|
-
}
|
|
47673
|
+
const configFile = {
|
|
47674
|
+
...await getConfigFile(_workspaceRoot),
|
|
47675
|
+
...getConfigEnv()
|
|
47676
|
+
};
|
|
47677
|
+
const config = StormConfigSchema.parse(configFile);
|
|
47739
47678
|
setConfigEnv(config);
|
|
47740
47679
|
return config;
|
|
47741
47680
|
};
|
|
@@ -34308,7 +34308,7 @@ var require_jsonfile = __commonJS({
|
|
|
34308
34308
|
return obj;
|
|
34309
34309
|
}
|
|
34310
34310
|
var readFile = universalify.fromPromise(_readFile);
|
|
34311
|
-
function
|
|
34311
|
+
function readFileSync(file, options = {}) {
|
|
34312
34312
|
if (typeof options === "string") {
|
|
34313
34313
|
options = { encoding: options };
|
|
34314
34314
|
}
|
|
@@ -34340,7 +34340,7 @@ var require_jsonfile = __commonJS({
|
|
|
34340
34340
|
}
|
|
34341
34341
|
var jsonfile = {
|
|
34342
34342
|
readFile,
|
|
34343
|
-
readFileSync
|
|
34343
|
+
readFileSync,
|
|
34344
34344
|
writeFile,
|
|
34345
34345
|
writeFileSync
|
|
34346
34346
|
};
|
|
@@ -43478,7 +43478,7 @@ var import_devkit2 = __toESM(require_devkit());
|
|
|
43478
43478
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
43479
43479
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
43480
43480
|
var _static_cache = void 0;
|
|
43481
|
-
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
43481
|
+
var getConfigFileName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
43482
43482
|
var getConfigFile = async (filePath) => {
|
|
43483
43483
|
if (_static_cache) {
|
|
43484
43484
|
return _static_cache;
|
|
@@ -43606,10 +43606,6 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
43606
43606
|
return result;
|
|
43607
43607
|
}
|
|
43608
43608
|
|
|
43609
|
-
// packages/config-tools/src/utilities/get-default-config.ts
|
|
43610
|
-
var import_node_fs2 = require("node:fs");
|
|
43611
|
-
var import_node_path2 = require("node:path");
|
|
43612
|
-
|
|
43613
43609
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
43614
43610
|
var util;
|
|
43615
43611
|
(function(util2) {
|
|
@@ -47270,51 +47266,6 @@ var DefaultStormConfig = {
|
|
|
47270
47266
|
colors: { ...DefaultColorConfig },
|
|
47271
47267
|
extensions: {}
|
|
47272
47268
|
};
|
|
47273
|
-
var getDefaultConfig = (config = {}, root) => {
|
|
47274
|
-
let name = "storm-workspace";
|
|
47275
|
-
let namespace = "storm-software";
|
|
47276
|
-
let repository = "https://github.com/storm-software/storm-ops";
|
|
47277
|
-
let license = DefaultStormConfig.license;
|
|
47278
|
-
let homepage = DefaultStormConfig.homepage;
|
|
47279
|
-
const workspaceRoot = findWorkspaceRoot(root);
|
|
47280
|
-
if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(workspaceRoot, "package.json"))) {
|
|
47281
|
-
const file = (0, import_node_fs2.readFileSync)((0, import_node_path2.join)(workspaceRoot, "package.json"), {
|
|
47282
|
-
encoding: "utf-8"
|
|
47283
|
-
});
|
|
47284
|
-
if (file) {
|
|
47285
|
-
const packageJson = JSON.parse(file);
|
|
47286
|
-
if (packageJson.name) {
|
|
47287
|
-
name = packageJson.name;
|
|
47288
|
-
}
|
|
47289
|
-
if (packageJson.namespace) {
|
|
47290
|
-
namespace = packageJson.namespace;
|
|
47291
|
-
}
|
|
47292
|
-
if (packageJson.repository?.url) {
|
|
47293
|
-
repository = packageJson.repository?.url;
|
|
47294
|
-
}
|
|
47295
|
-
if (packageJson.license) {
|
|
47296
|
-
license = packageJson.license;
|
|
47297
|
-
}
|
|
47298
|
-
if (packageJson.homepage) {
|
|
47299
|
-
homepage = packageJson.homepage;
|
|
47300
|
-
}
|
|
47301
|
-
}
|
|
47302
|
-
}
|
|
47303
|
-
return StormConfigSchema.parse({
|
|
47304
|
-
...config,
|
|
47305
|
-
...DefaultStormConfig,
|
|
47306
|
-
colors: { ...config.colors, ...DefaultColorConfig },
|
|
47307
|
-
workspaceRoot,
|
|
47308
|
-
name,
|
|
47309
|
-
namespace,
|
|
47310
|
-
repository,
|
|
47311
|
-
license: license ?? DefaultStormConfig.license,
|
|
47312
|
-
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
47313
|
-
extensions: {
|
|
47314
|
-
...config.extensions
|
|
47315
|
-
}
|
|
47316
|
-
});
|
|
47317
|
-
};
|
|
47318
47269
|
|
|
47319
47270
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
47320
47271
|
var getLogLevel = (label) => {
|
|
@@ -47494,7 +47445,6 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47494
47445
|
};
|
|
47495
47446
|
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
47496
47447
|
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
47497
|
-
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
47498
47448
|
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
47499
47449
|
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
47500
47450
|
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
@@ -47716,26 +47666,15 @@ var getConfigEnv = () => {
|
|
|
47716
47666
|
|
|
47717
47667
|
// packages/config-tools/src/create-storm-config.ts
|
|
47718
47668
|
var loadStormConfig = async (workspaceRoot) => {
|
|
47719
|
-
let config = {};
|
|
47720
47669
|
let _workspaceRoot = workspaceRoot;
|
|
47721
47670
|
if (!_workspaceRoot) {
|
|
47722
47671
|
_workspaceRoot = findWorkspaceRoot();
|
|
47723
47672
|
}
|
|
47724
|
-
const configFile =
|
|
47725
|
-
|
|
47726
|
-
|
|
47727
|
-
|
|
47728
|
-
|
|
47729
|
-
_workspaceRoot
|
|
47730
|
-
);
|
|
47731
|
-
if (configFile) {
|
|
47732
|
-
config = StormConfigSchema.parse(configFile);
|
|
47733
|
-
} else {
|
|
47734
|
-
writeWarning(
|
|
47735
|
-
config,
|
|
47736
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
|
|
47737
|
-
);
|
|
47738
|
-
}
|
|
47673
|
+
const configFile = {
|
|
47674
|
+
...await getConfigFile(_workspaceRoot),
|
|
47675
|
+
...getConfigEnv()
|
|
47676
|
+
};
|
|
47677
|
+
const config = StormConfigSchema.parse(configFile);
|
|
47739
47678
|
setConfigEnv(config);
|
|
47740
47679
|
return config;
|
|
47741
47680
|
};
|
|
@@ -26237,7 +26237,7 @@ var import_devkit = __toESM(require_devkit());
|
|
|
26237
26237
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
26238
26238
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
26239
26239
|
var _static_cache = void 0;
|
|
26240
|
-
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
26240
|
+
var getConfigFileName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
26241
26241
|
var getConfigFile = async (filePath) => {
|
|
26242
26242
|
if (_static_cache) {
|
|
26243
26243
|
return _static_cache;
|
|
@@ -26365,10 +26365,6 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
26365
26365
|
return result;
|
|
26366
26366
|
}
|
|
26367
26367
|
|
|
26368
|
-
// packages/config-tools/src/utilities/get-default-config.ts
|
|
26369
|
-
var import_node_fs2 = require("node:fs");
|
|
26370
|
-
var import_node_path2 = require("node:path");
|
|
26371
|
-
|
|
26372
26368
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
26373
26369
|
var util;
|
|
26374
26370
|
(function(util2) {
|
|
@@ -30029,51 +30025,6 @@ var DefaultStormConfig = {
|
|
|
30029
30025
|
colors: { ...DefaultColorConfig },
|
|
30030
30026
|
extensions: {}
|
|
30031
30027
|
};
|
|
30032
|
-
var getDefaultConfig = (config = {}, root) => {
|
|
30033
|
-
let name = "storm-workspace";
|
|
30034
|
-
let namespace = "storm-software";
|
|
30035
|
-
let repository = "https://github.com/storm-software/storm-ops";
|
|
30036
|
-
let license = DefaultStormConfig.license;
|
|
30037
|
-
let homepage = DefaultStormConfig.homepage;
|
|
30038
|
-
const workspaceRoot = findWorkspaceRoot(root);
|
|
30039
|
-
if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(workspaceRoot, "package.json"))) {
|
|
30040
|
-
const file = (0, import_node_fs2.readFileSync)((0, import_node_path2.join)(workspaceRoot, "package.json"), {
|
|
30041
|
-
encoding: "utf-8"
|
|
30042
|
-
});
|
|
30043
|
-
if (file) {
|
|
30044
|
-
const packageJson = JSON.parse(file);
|
|
30045
|
-
if (packageJson.name) {
|
|
30046
|
-
name = packageJson.name;
|
|
30047
|
-
}
|
|
30048
|
-
if (packageJson.namespace) {
|
|
30049
|
-
namespace = packageJson.namespace;
|
|
30050
|
-
}
|
|
30051
|
-
if (packageJson.repository?.url) {
|
|
30052
|
-
repository = packageJson.repository?.url;
|
|
30053
|
-
}
|
|
30054
|
-
if (packageJson.license) {
|
|
30055
|
-
license = packageJson.license;
|
|
30056
|
-
}
|
|
30057
|
-
if (packageJson.homepage) {
|
|
30058
|
-
homepage = packageJson.homepage;
|
|
30059
|
-
}
|
|
30060
|
-
}
|
|
30061
|
-
}
|
|
30062
|
-
return StormConfigSchema.parse({
|
|
30063
|
-
...config,
|
|
30064
|
-
...DefaultStormConfig,
|
|
30065
|
-
colors: { ...config.colors, ...DefaultColorConfig },
|
|
30066
|
-
workspaceRoot,
|
|
30067
|
-
name,
|
|
30068
|
-
namespace,
|
|
30069
|
-
repository,
|
|
30070
|
-
license: license ?? DefaultStormConfig.license,
|
|
30071
|
-
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
30072
|
-
extensions: {
|
|
30073
|
-
...config.extensions
|
|
30074
|
-
}
|
|
30075
|
-
});
|
|
30076
|
-
};
|
|
30077
30028
|
|
|
30078
30029
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
30079
30030
|
var getLogLevel = (label) => {
|
|
@@ -30253,7 +30204,6 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
30253
30204
|
};
|
|
30254
30205
|
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
30255
30206
|
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
30256
|
-
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
30257
30207
|
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
30258
30208
|
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
30259
30209
|
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
@@ -30475,26 +30425,15 @@ var getConfigEnv = () => {
|
|
|
30475
30425
|
|
|
30476
30426
|
// packages/config-tools/src/create-storm-config.ts
|
|
30477
30427
|
var loadStormConfig = async (workspaceRoot) => {
|
|
30478
|
-
let config = {};
|
|
30479
30428
|
let _workspaceRoot = workspaceRoot;
|
|
30480
30429
|
if (!_workspaceRoot) {
|
|
30481
30430
|
_workspaceRoot = findWorkspaceRoot();
|
|
30482
30431
|
}
|
|
30483
|
-
const configFile =
|
|
30484
|
-
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
|
|
30488
|
-
_workspaceRoot
|
|
30489
|
-
);
|
|
30490
|
-
if (configFile) {
|
|
30491
|
-
config = StormConfigSchema.parse(configFile);
|
|
30492
|
-
} else {
|
|
30493
|
-
writeWarning(
|
|
30494
|
-
config,
|
|
30495
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
|
|
30496
|
-
);
|
|
30497
|
-
}
|
|
30432
|
+
const configFile = {
|
|
30433
|
+
...await getConfigFile(_workspaceRoot),
|
|
30434
|
+
...getConfigEnv()
|
|
30435
|
+
};
|
|
30436
|
+
const config = StormConfigSchema.parse(configFile);
|
|
30498
30437
|
setConfigEnv(config);
|
|
30499
30438
|
return config;
|
|
30500
30439
|
};
|