@storm-software/unbuild 0.38.6 → 0.38.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/bin/unbuild.cjs +14 -12
- package/bin/unbuild.js +14 -12
- package/dist/build.cjs +7 -7
- package/dist/build.d.cts +2 -2
- package/dist/build.d.ts +2 -2
- package/dist/build.js +6 -6
- package/dist/{chunk-EJVOWVIQ.js → chunk-3FANH6ED.js} +2 -2
- package/dist/{chunk-T3BNH4LG.js → chunk-7G3BCJIK.js} +16 -16
- package/dist/{chunk-OOFPXPRC.cjs → chunk-AHQIGTFC.cjs} +2 -2
- package/dist/{chunk-VPCO2H3G.cjs → chunk-CYX4LFNQ.cjs} +2 -2
- package/dist/{chunk-IYFBAI6G.js → chunk-G62UH6SY.js} +1 -1
- package/dist/{chunk-5MDNSLYX.cjs → chunk-SIR4O5JK.cjs} +117 -117
- package/dist/{chunk-5XTPDLOE.js → chunk-TDDFO4FC.js} +1 -1
- package/dist/{chunk-WGGER7UI.cjs → chunk-VDERNXXY.cjs} +3 -3
- package/dist/{chunk-K5SEKFQA.cjs → chunk-WSXJ22NQ.cjs} +2 -2
- package/dist/{chunk-2FX3WQNK.js → chunk-WVSYK2DF.js} +1 -1
- package/dist/{chunk-JLKMLDBA.js → chunk-XBFAUJGO.js} +1 -1
- package/dist/{chunk-X25DCA4T.cjs → chunk-XM5UE2GX.cjs} +3 -3
- package/dist/clean.cjs +3 -3
- package/dist/clean.d.cts +5 -5
- package/dist/clean.d.ts +5 -5
- package/dist/clean.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/plugins/analyze.cjs +3 -3
- package/dist/plugins/analyze.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +1 -1
package/bin/unbuild.cjs
CHANGED
|
@@ -156,7 +156,7 @@ var WorkspaceDirectoryConfigSchema = import_zod.default.object({
|
|
|
156
156
|
log: import_zod.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
157
157
|
build: import_zod.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
158
158
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
159
|
-
var
|
|
159
|
+
var stormWorkspaceConfigSchema = import_zod.default.object({
|
|
160
160
|
$schema: import_zod.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
161
161
|
extends: ExtendsSchema.optional(),
|
|
162
162
|
name: import_zod.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -1308,7 +1308,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
1308
1308
|
// ../config-tools/src/create-storm-config.ts
|
|
1309
1309
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1310
1310
|
var _static_cache = void 0;
|
|
1311
|
-
var
|
|
1311
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1312
1312
|
let result;
|
|
1313
1313
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1314
1314
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1323,7 +1323,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1323
1323
|
logLevel: "all"
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
|
-
result = await
|
|
1326
|
+
result = await stormWorkspaceConfigSchema.parseAsync((0, import_defu2.default)(configEnv, configFile, defaultConfig));
|
|
1327
1327
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1328
1328
|
} else {
|
|
1329
1329
|
result = _static_cache.data;
|
|
@@ -1339,7 +1339,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1339
1339
|
data: result
|
|
1340
1340
|
};
|
|
1341
1341
|
return result;
|
|
1342
|
-
}, "
|
|
1342
|
+
}, "createStormWorkspaceConfig");
|
|
1343
1343
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
1344
1344
|
const extension_cache_key = {
|
|
1345
1345
|
extensionName
|
|
@@ -1354,19 +1354,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1354
1354
|
_extension_cache.set(extension_cache_key, extension);
|
|
1355
1355
|
return extension;
|
|
1356
1356
|
}, "createConfigExtension");
|
|
1357
|
-
var
|
|
1358
|
-
const config = await
|
|
1357
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
1358
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1359
1359
|
setConfigEnv(config);
|
|
1360
1360
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1361
1361
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1362
1362
|
${formatLogMessage(config)}`, config);
|
|
1363
1363
|
}
|
|
1364
1364
|
return config;
|
|
1365
|
-
}, "
|
|
1365
|
+
}, "loadStormWorkspaceConfig");
|
|
1366
1366
|
|
|
1367
1367
|
// ../config-tools/src/get-config.ts
|
|
1368
1368
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
1369
|
-
return
|
|
1369
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1370
1370
|
}, "getConfig");
|
|
1371
1371
|
|
|
1372
1372
|
// bin/unbuild.ts
|
|
@@ -1491,13 +1491,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
1491
1491
|
return ret;
|
|
1492
1492
|
}, []);
|
|
1493
1493
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
1494
|
-
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
1495
|
-
ret[localPackage.name] =
|
|
1494
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
|
|
1495
|
+
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
1496
1496
|
}
|
|
1497
1497
|
return ret;
|
|
1498
1498
|
}, packageJson.dependencies ?? {});
|
|
1499
1499
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
1500
|
-
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
1500
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
|
|
1501
1501
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
1502
1502
|
}
|
|
1503
1503
|
return ret;
|
|
@@ -2054,7 +2054,9 @@ async function createProgram(config) {
|
|
|
2054
2054
|
const root = findWorkspaceRootSafe();
|
|
2055
2055
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
2056
2056
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
2057
|
-
|
|
2057
|
+
if (root) {
|
|
2058
|
+
process.chdir(root);
|
|
2059
|
+
}
|
|
2058
2060
|
const program = new import_commander.Command("storm-unbuild");
|
|
2059
2061
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
2060
2062
|
program.description("\u26A1 Run the Storm Unbuild pipeline").showHelpAfterError().showSuggestionAfterError();
|
package/bin/unbuild.js
CHANGED
|
@@ -135,7 +135,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
135
135
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
136
136
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
137
137
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
138
|
-
var
|
|
138
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
139
139
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
140
140
|
extends: ExtendsSchema.optional(),
|
|
141
141
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -1287,7 +1287,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
1287
1287
|
// ../config-tools/src/create-storm-config.ts
|
|
1288
1288
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1289
1289
|
var _static_cache = void 0;
|
|
1290
|
-
var
|
|
1290
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
1291
1291
|
let result;
|
|
1292
1292
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1293
1293
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -1302,7 +1302,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1302
1302
|
logLevel: "all"
|
|
1303
1303
|
});
|
|
1304
1304
|
}
|
|
1305
|
-
result = await
|
|
1305
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
|
|
1306
1306
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1307
1307
|
} else {
|
|
1308
1308
|
result = _static_cache.data;
|
|
@@ -1318,7 +1318,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1318
1318
|
data: result
|
|
1319
1319
|
};
|
|
1320
1320
|
return result;
|
|
1321
|
-
}, "
|
|
1321
|
+
}, "createStormWorkspaceConfig");
|
|
1322
1322
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
1323
1323
|
const extension_cache_key = {
|
|
1324
1324
|
extensionName
|
|
@@ -1333,19 +1333,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1333
1333
|
_extension_cache.set(extension_cache_key, extension);
|
|
1334
1334
|
return extension;
|
|
1335
1335
|
}, "createConfigExtension");
|
|
1336
|
-
var
|
|
1337
|
-
const config = await
|
|
1336
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
1337
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
1338
1338
|
setConfigEnv(config);
|
|
1339
1339
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1340
1340
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1341
1341
|
${formatLogMessage(config)}`, config);
|
|
1342
1342
|
}
|
|
1343
1343
|
return config;
|
|
1344
|
-
}, "
|
|
1344
|
+
}, "loadStormWorkspaceConfig");
|
|
1345
1345
|
|
|
1346
1346
|
// ../config-tools/src/get-config.ts
|
|
1347
1347
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
1348
|
-
return
|
|
1348
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1349
1349
|
}, "getConfig");
|
|
1350
1350
|
|
|
1351
1351
|
// bin/unbuild.ts
|
|
@@ -1470,13 +1470,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
1470
1470
|
return ret;
|
|
1471
1471
|
}, []);
|
|
1472
1472
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
1473
|
-
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
1474
|
-
ret[localPackage.name] =
|
|
1473
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
|
|
1474
|
+
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
1475
1475
|
}
|
|
1476
1476
|
return ret;
|
|
1477
1477
|
}, packageJson.dependencies ?? {});
|
|
1478
1478
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
1479
|
-
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
1479
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
|
|
1480
1480
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
1481
1481
|
}
|
|
1482
1482
|
return ret;
|
|
@@ -2033,7 +2033,9 @@ async function createProgram(config) {
|
|
|
2033
2033
|
const root = findWorkspaceRootSafe();
|
|
2034
2034
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
2035
2035
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
2036
|
-
|
|
2036
|
+
if (root) {
|
|
2037
|
+
process.chdir(root);
|
|
2038
|
+
}
|
|
2037
2039
|
const program = new Command("storm-unbuild");
|
|
2038
2040
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
2039
2041
|
program.description("\u26A1 Run the Storm Unbuild pipeline").showHelpAfterError().showSuggestionAfterError();
|
package/dist/build.cjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
8
|
+
var _chunkSIR4O5JKcjs = require('./chunk-SIR4O5JK.cjs');
|
|
9
|
+
require('./chunk-VDERNXXY.cjs');
|
|
10
|
+
require('./chunk-AHQIGTFC.cjs');
|
|
11
|
+
require('./chunk-XM5UE2GX.cjs');
|
|
12
|
+
require('./chunk-CYX4LFNQ.cjs');
|
|
13
|
+
require('./chunk-WSXJ22NQ.cjs');
|
|
14
14
|
require('./chunk-BGYQAVKQ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunkSIR4O5JKcjs.build; exports.cleanOutputPath = _chunkSIR4O5JKcjs.cleanOutputPath; exports.copyBuildAssets = _chunkSIR4O5JKcjs.copyBuildAssets; exports.executeUnbuild = _chunkSIR4O5JKcjs.executeUnbuild; exports.generatePackageJson = _chunkSIR4O5JKcjs.generatePackageJson; exports.resolveOptions = _chunkSIR4O5JKcjs.resolveOptions;
|
package/dist/build.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
2
2
|
import { UnbuildOptions, UnbuildResolvedOptions } from './types.cjs';
|
|
3
3
|
import '@storm-software/build-tools';
|
|
4
4
|
import 'esbuild';
|
|
@@ -11,7 +11,7 @@ import 'unbuild';
|
|
|
11
11
|
* @param options - the unbuild options
|
|
12
12
|
* @returns the resolved options
|
|
13
13
|
*/
|
|
14
|
-
declare function resolveOptions(options: UnbuildOptions, config:
|
|
14
|
+
declare function resolveOptions(options: UnbuildOptions, config: StormWorkspaceConfig): Promise<UnbuildResolvedOptions>;
|
|
15
15
|
declare function generatePackageJson(options: UnbuildResolvedOptions): Promise<UnbuildResolvedOptions>;
|
|
16
16
|
/**
|
|
17
17
|
* Execute Unbuild with all the configurations we pass
|
package/dist/build.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
2
2
|
import { UnbuildOptions, UnbuildResolvedOptions } from './types.js';
|
|
3
3
|
import '@storm-software/build-tools';
|
|
4
4
|
import 'esbuild';
|
|
@@ -11,7 +11,7 @@ import 'unbuild';
|
|
|
11
11
|
* @param options - the unbuild options
|
|
12
12
|
* @returns the resolved options
|
|
13
13
|
*/
|
|
14
|
-
declare function resolveOptions(options: UnbuildOptions, config:
|
|
14
|
+
declare function resolveOptions(options: UnbuildOptions, config: StormWorkspaceConfig): Promise<UnbuildResolvedOptions>;
|
|
15
15
|
declare function generatePackageJson(options: UnbuildResolvedOptions): Promise<UnbuildResolvedOptions>;
|
|
16
16
|
/**
|
|
17
17
|
* Execute Unbuild with all the configurations we pass
|
package/dist/build.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-7G3BCJIK.js";
|
|
9
|
+
import "./chunk-XBFAUJGO.js";
|
|
10
|
+
import "./chunk-TDDFO4FC.js";
|
|
11
|
+
import "./chunk-WVSYK2DF.js";
|
|
12
|
+
import "./chunk-G62UH6SY.js";
|
|
13
|
+
import "./chunk-3FANH6ED.js";
|
|
14
14
|
import "./chunk-3GQAWCBQ.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -339,7 +339,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
339
339
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
340
340
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
341
341
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
342
|
-
var
|
|
342
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
343
343
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
344
344
|
extends: ExtendsSchema.optional(),
|
|
345
345
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -740,7 +740,7 @@ export {
|
|
|
740
740
|
STORM_DEFAULT_DOCS,
|
|
741
741
|
STORM_DEFAULT_HOMEPAGE,
|
|
742
742
|
STORM_DEFAULT_LICENSING,
|
|
743
|
-
|
|
743
|
+
stormWorkspaceConfigSchema,
|
|
744
744
|
COLOR_KEYS,
|
|
745
745
|
correctPaths,
|
|
746
746
|
joinPaths,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XBFAUJGO.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TDDFO4FC.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WVSYK2DF.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G62UH6SY.js";
|
|
14
14
|
import {
|
|
15
15
|
COLOR_KEYS,
|
|
16
16
|
LogLevel,
|
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
STORM_DEFAULT_DOCS,
|
|
19
19
|
STORM_DEFAULT_HOMEPAGE,
|
|
20
20
|
STORM_DEFAULT_LICENSING,
|
|
21
|
-
StormConfigSchema,
|
|
22
21
|
correctPaths,
|
|
23
22
|
findWorkspaceRoot,
|
|
24
23
|
formatLogMessage,
|
|
@@ -28,12 +27,13 @@ import {
|
|
|
28
27
|
getStopwatch,
|
|
29
28
|
isVerbose,
|
|
30
29
|
joinPaths,
|
|
30
|
+
stormWorkspaceConfigSchema,
|
|
31
31
|
writeDebug,
|
|
32
32
|
writeFatal,
|
|
33
33
|
writeSuccess,
|
|
34
34
|
writeTrace,
|
|
35
35
|
writeWarning
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3FANH6ED.js";
|
|
37
37
|
import {
|
|
38
38
|
__name
|
|
39
39
|
} from "./chunk-3GQAWCBQ.js";
|
|
@@ -157,13 +157,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
157
157
|
return ret;
|
|
158
158
|
}, []);
|
|
159
159
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
160
|
-
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
161
|
-
ret[localPackage.name] =
|
|
160
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
|
|
161
|
+
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
162
162
|
}
|
|
163
163
|
return ret;
|
|
164
164
|
}, packageJson.dependencies ?? {});
|
|
165
165
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
166
|
-
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
166
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
|
|
167
167
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
168
168
|
}
|
|
169
169
|
return ret;
|
|
@@ -734,7 +734,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
734
734
|
// ../config-tools/src/create-storm-config.ts
|
|
735
735
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
736
736
|
var _static_cache = void 0;
|
|
737
|
-
var
|
|
737
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
738
738
|
let result;
|
|
739
739
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
740
740
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -749,7 +749,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
749
749
|
logLevel: "all"
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
|
-
result = await
|
|
752
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
|
|
753
753
|
result.workspaceRoot ??= _workspaceRoot;
|
|
754
754
|
} else {
|
|
755
755
|
result = _static_cache.data;
|
|
@@ -765,7 +765,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
765
765
|
data: result
|
|
766
766
|
};
|
|
767
767
|
return result;
|
|
768
|
-
}, "
|
|
768
|
+
}, "createStormWorkspaceConfig");
|
|
769
769
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
770
770
|
const extension_cache_key = {
|
|
771
771
|
extensionName
|
|
@@ -780,19 +780,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
780
780
|
_extension_cache.set(extension_cache_key, extension);
|
|
781
781
|
return extension;
|
|
782
782
|
}, "createConfigExtension");
|
|
783
|
-
var
|
|
784
|
-
const config = await
|
|
783
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
784
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
785
785
|
setConfigEnv(config);
|
|
786
786
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
787
787
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
788
788
|
${formatLogMessage(config)}`, config);
|
|
789
789
|
}
|
|
790
790
|
return config;
|
|
791
|
-
}, "
|
|
791
|
+
}, "loadStormWorkspaceConfig");
|
|
792
792
|
|
|
793
793
|
// ../config-tools/src/get-config.ts
|
|
794
794
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
795
|
-
return
|
|
795
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
796
796
|
}, "getConfig");
|
|
797
797
|
|
|
798
798
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWSXJ22NQcjs = require('./chunk-WSXJ22NQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -25,7 +25,7 @@ var analyzePlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
|
|
|
25
25
|
renderChunk(source, chunk) {
|
|
26
26
|
const sourceBytes = formatBytes(source.length);
|
|
27
27
|
const fileName = chunk.fileName;
|
|
28
|
-
|
|
28
|
+
_chunkWSXJ22NQcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}, "analyzePlugin");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWSXJ22NQcjs = require('./chunk-WSXJ22NQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -32,7 +32,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
32
32
|
declaration: true,
|
|
33
33
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
_chunkWSXJ22NQcjs.writeTrace.call(void 0, compilerOptions, config);
|
|
36
36
|
return compilerOptions;
|
|
37
37
|
}
|
|
38
38
|
_chunkBGYQAVKQcjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
|