@storm-software/workspace-tools 1.246.0 → 1.246.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/{chunk-7Q66XSCS.mjs → chunk-2AKLJNKO.mjs} +2 -2
- package/dist/{chunk-6QSFQS3X.js → chunk-34JK7ZOU.js} +2 -2
- package/dist/{chunk-CLBFXZQ5.mjs → chunk-3SPGOKCO.mjs} +1 -1
- package/dist/{chunk-HXU5ZXAJ.mjs → chunk-4F75KA7J.mjs} +1 -1
- package/dist/{chunk-UI3SQYV3.mjs → chunk-4YODDZMS.mjs} +1 -1
- package/dist/{chunk-KLHTXAIU.js → chunk-66FRJGIN.js} +20 -20
- package/dist/{chunk-U6TLQT5H.js → chunk-6V5GP3U4.js} +3 -3
- package/dist/{chunk-5XF4CY7D.mjs → chunk-7QVGAOPQ.mjs} +1 -1
- package/dist/{chunk-GJ6DN3BR.mjs → chunk-AQLXZBXJ.mjs} +3 -3
- package/dist/{chunk-5DAZ2WTI.js → chunk-AWPP7DRY.js} +2 -2
- package/dist/{chunk-IBHLVELV.js → chunk-AY5HELLN.js} +25 -25
- package/dist/{chunk-EUCOXCI2.mjs → chunk-BBRVJL4A.mjs} +4 -4
- package/dist/{chunk-6627ZZQF.mjs → chunk-BC3QVHAH.mjs} +4 -4
- package/dist/{chunk-ZOFW74B2.mjs → chunk-BLG6LLHW.mjs} +1 -1
- package/dist/{chunk-HONSACRT.js → chunk-BNYY2WQJ.js} +2 -2
- package/dist/{chunk-2HD75CLD.js → chunk-BYLPQCIB.js} +11 -11
- package/dist/{chunk-MMMTLP2W.js → chunk-CQAGLRNY.js} +5 -5
- package/dist/{chunk-2GRVQNW3.js → chunk-CUPARBOS.js} +3 -3
- package/dist/{chunk-RAVLTWJV.js → chunk-ECSCURQQ.js} +13 -13
- package/dist/{chunk-D2ECVPJF.js → chunk-EIL3PQQL.js} +2 -2
- package/dist/{chunk-XIOF32ZH.mjs → chunk-FBIVTCSJ.mjs} +1 -1
- package/dist/{chunk-RRWRVA7F.js → chunk-FDPZRNKZ.js} +15 -15
- package/dist/{chunk-RSILHGEU.js → chunk-G3AMYMML.js} +22 -22
- package/dist/{chunk-SNFZL5BN.mjs → chunk-GQ6ZBQ6I.mjs} +3 -3
- package/dist/{chunk-RFO5NMSB.js → chunk-H5XURNDS.js} +2 -2
- package/dist/{chunk-Q45DDLNL.mjs → chunk-HK26KBWU.mjs} +2 -2
- package/dist/{chunk-TGDWEUKX.mjs → chunk-I6BCQJPP.mjs} +1 -1
- package/dist/{chunk-IUV3RLT4.mjs → chunk-IPMZQTRA.mjs} +1 -1
- package/dist/{chunk-YWKUJJ34.js → chunk-ITL2GPJB.js} +2 -2
- package/dist/chunk-JTAXCQX6.js +135 -0
- package/dist/{chunk-RLGZCVPW.mjs → chunk-KPKHTJWT.mjs} +3 -3
- package/dist/{chunk-PKBHUBDV.mjs → chunk-KV7YB4MU.mjs} +1 -1
- package/dist/{chunk-PCPEJBLO.js → chunk-LZNWOO4B.js} +7 -7
- package/dist/{chunk-YSYBVJGR.js → chunk-N3WLDHSN.js} +2 -2
- package/dist/chunk-NCFX2MWO.mjs +135 -0
- package/dist/{chunk-LYUV4LMB.mjs → chunk-O3ZLX7S5.mjs} +2 -2
- package/dist/{chunk-IF2GIONQ.js → chunk-P4ALYDGC.js} +5 -5
- package/dist/{chunk-C3YSVZWO.js → chunk-Q2DU6KGV.js} +7 -7
- package/dist/{chunk-T2NTGJ6O.mjs → chunk-Q47LFUGL.mjs} +3 -3
- package/dist/{chunk-6N67WSX5.mjs → chunk-R7VJ7ZHV.mjs} +1 -1
- package/dist/{chunk-GYGIXXAL.js → chunk-RWDBQOGV.js} +5 -5
- package/dist/{chunk-C2REXPET.mjs → chunk-SLCOHXD3.mjs} +1 -1
- package/dist/{chunk-KWIXQ4UN.mjs → chunk-TBQLIKD4.mjs} +3 -3
- package/dist/{chunk-INEO4WKL.mjs → chunk-TJ6WVBYM.mjs} +3 -3
- package/dist/{chunk-6ZRK5I4N.js → chunk-U3TVR7B3.js} +7 -7
- package/dist/{chunk-UHNTJRTW.mjs → chunk-U4AQXXXF.mjs} +3 -3
- package/dist/{chunk-FZUZUTKX.js → chunk-U7TEDNQF.js} +41 -41
- package/dist/{chunk-K62HB3IT.mjs → chunk-WCIY3TEF.mjs} +1 -1
- package/dist/{chunk-YFERQMWX.js → chunk-WPYYDD5F.js} +2 -2
- package/dist/{chunk-7PLUDZNP.mjs → chunk-X7XA6QPV.mjs} +2 -2
- package/dist/{chunk-CFRPLVEU.mjs → chunk-XI4BWTXX.mjs} +2 -2
- package/dist/{chunk-GDE7VBWW.js → chunk-Z6E637KA.js} +62 -62
- package/dist/{chunk-M7ZE5SMZ.js → chunk-ZAE2P6GK.js} +7 -7
- package/dist/{chunk-SBCLCF4E.mjs → chunk-ZKWGOANM.mjs} +4 -4
- package/dist/{chunk-B6PUPX6O.js → chunk-ZQPK5G4U.js} +27 -27
- package/dist/{chunk-QSLN7UYG.js → chunk-ZVP6NBMF.js} +2 -2
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +20 -20
- package/dist/generators.js +13 -13
- package/dist/generators.mjs +12 -12
- package/dist/index.js +29 -29
- package/dist/index.mjs +30 -30
- package/dist/src/base/base-executor.js +6 -6
- package/dist/src/base/base-executor.mjs +5 -5
- package/dist/src/base/base-generator.js +6 -6
- package/dist/src/base/base-generator.mjs +5 -5
- package/dist/src/base/index.js +8 -8
- package/dist/src/base/index.mjs +7 -7
- package/dist/src/executors/cargo-build/executor.js +7 -7
- package/dist/src/executors/cargo-build/executor.mjs +6 -6
- package/dist/src/executors/cargo-check/executor.js +7 -7
- package/dist/src/executors/cargo-check/executor.mjs +6 -6
- package/dist/src/executors/cargo-clippy/executor.js +7 -7
- package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
- package/dist/src/executors/cargo-doc/executor.js +7 -7
- package/dist/src/executors/cargo-doc/executor.mjs +6 -6
- package/dist/src/executors/cargo-format/executor.js +7 -7
- package/dist/src/executors/cargo-format/executor.mjs +6 -6
- package/dist/src/executors/clean-package/executor.js +9 -9
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +8 -8
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/npm-publish/executor.js +4 -4
- package/dist/src/executors/npm-publish/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/tsdown/executor.js +8 -8
- package/dist/src/executors/tsdown/executor.mjs +7 -7
- package/dist/src/executors/typia/executor.js +7 -7
- package/dist/src/executors/typia/executor.mjs +6 -6
- package/dist/src/executors/unbuild/executor.js +7 -7
- package/dist/src/executors/unbuild/executor.mjs +6 -6
- package/dist/src/generators/browser-library/generator.js +8 -8
- package/dist/src/generators/browser-library/generator.mjs +7 -7
- package/dist/src/generators/config-schema/generator.js +7 -7
- package/dist/src/generators/config-schema/generator.mjs +6 -6
- package/dist/src/generators/neutral-library/generator.js +8 -8
- package/dist/src/generators/neutral-library/generator.mjs +7 -7
- package/dist/src/generators/node-library/generator.js +8 -8
- package/dist/src/generators/node-library/generator.mjs +7 -7
- package/dist/src/generators/preset/generator.js +7 -7
- package/dist/src/generators/preset/generator.mjs +6 -6
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/utils/apply-workspace-tokens.js +4 -4
- package/dist/src/utils/apply-workspace-tokens.mjs +3 -3
- package/dist/src/utils/get-project-configurations.js +4 -4
- package/dist/src/utils/get-project-configurations.mjs +3 -3
- package/dist/src/utils/index.js +6 -6
- package/dist/src/utils/index.mjs +5 -5
- package/dist/src/utils/pnpm-deps-update.js +3 -3
- package/dist/src/utils/pnpm-deps-update.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-2AUNU6UA.mjs +0 -32
- package/dist/chunk-BUXJSVJG.js +0 -32
|
@@ -7,7 +7,7 @@ var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
|
7
7
|
var _chunk7YRW5HNXjs = require('./chunk-7YRW5HNX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -41,7 +41,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
41
41
|
const projectConfig = {
|
|
42
42
|
root: normalized.directory,
|
|
43
43
|
projectType: "library",
|
|
44
|
-
sourceRoot:
|
|
44
|
+
sourceRoot: _chunkJTAXCQX6js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
45
45
|
targets: {
|
|
46
46
|
build: {
|
|
47
47
|
executor: options.buildExecutor,
|
|
@@ -50,11 +50,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
50
50
|
],
|
|
51
51
|
options: {
|
|
52
52
|
entry: [
|
|
53
|
-
|
|
53
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
54
54
|
],
|
|
55
55
|
outputPath: getOutputPath(normalized),
|
|
56
|
-
tsconfig:
|
|
57
|
-
project:
|
|
56
|
+
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
57
|
+
project: _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
58
58
|
defaultConfiguration: "production",
|
|
59
59
|
platform: "neutral",
|
|
60
60
|
assets: [
|
|
@@ -108,7 +108,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
108
108
|
if (!normalized.importPath) {
|
|
109
109
|
normalized.importPath = normalized.name;
|
|
110
110
|
}
|
|
111
|
-
const packageJsonPath =
|
|
111
|
+
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
112
112
|
if (tree.exists(packageJsonPath)) {
|
|
113
113
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
114
114
|
if (!normalized.importPath) {
|
|
@@ -165,10 +165,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
165
165
|
}));
|
|
166
166
|
}
|
|
167
167
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
168
|
-
|
|
168
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
169
169
|
]);
|
|
170
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
171
|
-
|
|
170
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
171
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
172
172
|
]);
|
|
173
173
|
if (tree.exists("package.json")) {
|
|
174
174
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -179,7 +179,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
179
179
|
description = packageJson.description;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
const tsconfigPath =
|
|
182
|
+
const tsconfigPath = _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
183
183
|
if (tree.exists(tsconfigPath)) {
|
|
184
184
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
185
185
|
json.composite ??= true;
|
|
@@ -217,7 +217,7 @@ function getOutputPath(options) {
|
|
|
217
217
|
} else {
|
|
218
218
|
parts.push(options.projectRoot);
|
|
219
219
|
}
|
|
220
|
-
return
|
|
220
|
+
return _chunkJTAXCQX6js.joinPaths.call(void 0, ...parts);
|
|
221
221
|
}
|
|
222
222
|
_chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
223
223
|
function createProjectTsConfigJson(tree, options) {
|
|
@@ -226,7 +226,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
226
226
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _12 => _12.tsconfigOptions]), () => ( {})),
|
|
227
227
|
compilerOptions: {
|
|
228
228
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
229
|
-
outDir:
|
|
229
|
+
outDir: _chunkJTAXCQX6js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
230
230
|
noEmit: true,
|
|
231
231
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _13 => _13.tsconfigOptions, 'optionalAccess', _14 => _14.compilerOptions]), () => ( {}))
|
|
232
232
|
},
|
|
@@ -246,7 +246,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
246
246
|
"src/**/*.test.ts"
|
|
247
247
|
]
|
|
248
248
|
};
|
|
249
|
-
_devkit.writeJson.call(void 0, tree,
|
|
249
|
+
_devkit.writeJson.call(void 0, tree, _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
250
250
|
}
|
|
251
251
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
252
252
|
async function normalizeOptions(tree, options, config) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk66FRJGINjs = require('./chunk-66FRJGIN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -232,7 +232,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
234
234
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
235
|
-
var generator_default =
|
|
235
|
+
var generator_default = _chunk66FRJGINjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
|
|
@@ -13,10 +13,10 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk6V5GP3U4js = require('./chunk-6V5GP3U4.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
248
248
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
249
249
|
var _semver3 = require('semver');
|
|
250
250
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
251
|
-
|
|
251
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
|
-
const workspaceRoot =
|
|
257
|
-
|
|
256
|
+
const workspaceRoot = _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, );
|
|
257
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
260
|
-
|
|
259
|
+
config = await _chunkZQPK5G4Ujs.getConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunkZQPK5G4Ujs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|
|
263
263
|
if (options.specifier) {
|
|
@@ -275,7 +275,7 @@ Valid values are: ${_version.validReleaseVersionPrefixes.map((s) => `"${s}"`).jo
|
|
|
275
275
|
const projects = options.projects;
|
|
276
276
|
const createResolvePackageRoot = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (customPackageRoot) => (projectNode) => {
|
|
277
277
|
if (_optionalChain([projectNode, 'optionalAccess', _3 => _3.data, 'optionalAccess', _4 => _4.root]) === _optionalChain([config, 'optionalAccess', _5 => _5.workspaceRoot]) || _optionalChain([projectNode, 'optionalAccess', _6 => _6.data, 'optionalAccess', _7 => _7.root]) === ".") {
|
|
278
|
-
return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => (
|
|
278
|
+
return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => ( _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, )));
|
|
279
279
|
}
|
|
280
280
|
if (!customPackageRoot) {
|
|
281
281
|
return projectNode.data.root;
|
|
@@ -305,11 +305,11 @@ Valid values are: ${_version.validReleaseVersionPrefixes.map((s) => `"${s}"`).jo
|
|
|
305
305
|
|
|
306
306
|
To fix this you will either need to add a package.json or Cargo.toml file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`);
|
|
307
307
|
}
|
|
308
|
-
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => (
|
|
308
|
+
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
309
309
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
310
|
-
|
|
310
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
311
311
|
}, "log");
|
|
312
|
-
|
|
312
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
313
313
|
let packageName;
|
|
314
314
|
let currentVersionFromDisk;
|
|
315
315
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
await _devkit.formatFiles.call(void 0, tree);
|
|
586
|
-
|
|
586
|
+
_chunkZQPK5G4Ujs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
587
587
|
`, config);
|
|
588
588
|
return {
|
|
589
589
|
data: versionData,
|
|
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
617
617
|
}, "callback")
|
|
618
618
|
};
|
|
619
619
|
} catch (error) {
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
_chunkZQPK5G4Ujs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
621
|
+
_chunkZQPK5G4Ujs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
622
622
|
- Details: ${error.message}
|
|
623
623
|
- Stacktrace: ${error.stack}`, config);
|
|
624
624
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6V5GP3U4js = require('./chunk-6V5GP3U4.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -54,8 +54,8 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
54
54
|
output: "src/"
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
57
|
+
_chunkZQPK5G4Ujs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
58
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
59
59
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
60
60
|
projectDir: projectRoot,
|
|
61
61
|
rootDir: config.workspaceRoot,
|
|
@@ -64,12 +64,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
64
64
|
});
|
|
65
65
|
await assetHandler.processAllAssetsOnce();
|
|
66
66
|
if (includeSrc === true) {
|
|
67
|
-
|
|
67
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
68
68
|
const files = await _glob.glob.call(void 0, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
70
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
71
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
72
|
+
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
73
73
|
]);
|
|
74
74
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
75
75
|
|
|
@@ -91,18 +91,18 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
91
91
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
92
92
|
const projectNode = project.node;
|
|
93
93
|
if (projectNode.data.root) {
|
|
94
|
-
const projectPackageJsonPath =
|
|
94
|
+
const projectPackageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
|
|
95
95
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
96
96
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
97
97
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
98
|
-
if (projectPackageJson.private !==
|
|
98
|
+
if (projectPackageJson.private !== true) {
|
|
99
99
|
localPackages.push(projectPackageJson);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
if (localPackages.length > 0) {
|
|
105
|
-
|
|
105
|
+
_chunkZQPK5G4Ujs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
106
106
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
107
107
|
if (!ret[localPackage.name]) {
|
|
108
108
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -124,13 +124,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
124
124
|
return ret;
|
|
125
125
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
126
126
|
} else {
|
|
127
|
-
|
|
127
|
+
_chunkZQPK5G4Ujs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
128
128
|
}
|
|
129
129
|
return packageJson;
|
|
130
130
|
}, "addPackageDependencies");
|
|
131
131
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
132
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
133
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
132
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, );
|
|
133
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
134
134
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
135
135
|
packageJson.type ??= "module";
|
|
136
136
|
packageJson.sideEffects ??= false;
|
|
@@ -139,7 +139,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
139
139
|
if (distSrc.startsWith("/")) {
|
|
140
140
|
distSrc = distSrc.substring(1);
|
|
141
141
|
}
|
|
142
|
-
packageJson.source ??= `${
|
|
142
|
+
packageJson.source ??= `${_chunkJTAXCQX6js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
143
143
|
}
|
|
144
144
|
packageJson.files ??= [
|
|
145
145
|
"dist/**/*"
|
|
@@ -170,7 +170,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
170
170
|
];
|
|
171
171
|
}
|
|
172
172
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
173
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
173
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkJTAXCQX6js.joinPaths.call(void 0, "packages", projectName);
|
|
174
174
|
return packageJson;
|
|
175
175
|
}, "addWorkspacePackageJsonFields");
|
|
176
176
|
var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -197,7 +197,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
197
197
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
198
198
|
|
|
199
199
|
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
200
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
200
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, );
|
|
201
201
|
const entryPoints = [];
|
|
202
202
|
if (entry) {
|
|
203
203
|
if (Array.isArray(entry)) {
|
|
@@ -209,7 +209,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
if (emitOnAll) {
|
|
212
|
-
entryPoints.push(
|
|
212
|
+
entryPoints.push(_chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
213
213
|
}
|
|
214
214
|
const results = [];
|
|
215
215
|
for (const entryPoint in entryPoints) {
|
|
@@ -218,9 +218,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
218
218
|
withFileTypes: true
|
|
219
219
|
});
|
|
220
220
|
results.push(...files.reduce((ret, filePath) => {
|
|
221
|
-
const result =
|
|
221
|
+
const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
|
|
222
222
|
if (result) {
|
|
223
|
-
|
|
223
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
224
224
|
if (!results.includes(result)) {
|
|
225
225
|
results.push(result);
|
|
226
226
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WCIY3TEF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig,
|
|
7
7
|
getStopwatch,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
writeInfo,
|
|
12
12
|
writeSuccess,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2AKLJNKO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
findWorkspaceRoot
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BLG6LLHW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6V5GP3U4js = require('./chunk-6V5GP3U4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -49,7 +49,7 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
49
49
|
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
50
50
|
}
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
52
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, ))));
|
|
53
53
|
}
|
|
54
54
|
return result;
|
|
55
55
|
}, "applyWorkspaceExecutorTokens");
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2AKLJNKO.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BLG6LLHW.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAY5HELLNjs = require('./chunk-AY5HELLN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkAY5HELLNjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
|
+
|
|
5
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
+
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
7
|
+
function normalizeWindowsPath(input = "") {
|
|
8
|
+
if (!input) {
|
|
9
|
+
return input;
|
|
10
|
+
}
|
|
11
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
12
|
+
}
|
|
13
|
+
_chunk3GQAWCBQjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
14
|
+
var _UNC_REGEX = /^[/\\]{2}/;
|
|
15
|
+
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
16
|
+
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
17
|
+
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(path) {
|
|
18
|
+
if (!path || path.length === 0) {
|
|
19
|
+
return ".";
|
|
20
|
+
}
|
|
21
|
+
path = normalizeWindowsPath(path);
|
|
22
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
23
|
+
const isPathAbsolute = isAbsolute(path);
|
|
24
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
25
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
26
|
+
if (path.length === 0) {
|
|
27
|
+
if (isPathAbsolute) {
|
|
28
|
+
return "/";
|
|
29
|
+
}
|
|
30
|
+
return trailingSeparator ? "./" : ".";
|
|
31
|
+
}
|
|
32
|
+
if (trailingSeparator) {
|
|
33
|
+
path += "/";
|
|
34
|
+
}
|
|
35
|
+
if (_DRIVE_LETTER_RE.test(path)) {
|
|
36
|
+
path += "/";
|
|
37
|
+
}
|
|
38
|
+
if (isUNCPath) {
|
|
39
|
+
if (!isPathAbsolute) {
|
|
40
|
+
return `//./${path}`;
|
|
41
|
+
}
|
|
42
|
+
return `//${path}`;
|
|
43
|
+
}
|
|
44
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
45
|
+
}, "correctPaths");
|
|
46
|
+
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(...segments) {
|
|
47
|
+
let path = "";
|
|
48
|
+
for (const seg of segments) {
|
|
49
|
+
if (!seg) {
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (path.length > 0) {
|
|
53
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
54
|
+
const segLeading = seg[0] === "/";
|
|
55
|
+
const both = pathTrailing && segLeading;
|
|
56
|
+
if (both) {
|
|
57
|
+
path += seg.slice(1);
|
|
58
|
+
} else {
|
|
59
|
+
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
60
|
+
}
|
|
61
|
+
} else {
|
|
62
|
+
path += seg;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return correctPaths(path);
|
|
66
|
+
}, "joinPaths");
|
|
67
|
+
function normalizeString(path, allowAboveRoot) {
|
|
68
|
+
let res = "";
|
|
69
|
+
let lastSegmentLength = 0;
|
|
70
|
+
let lastSlash = -1;
|
|
71
|
+
let dots = 0;
|
|
72
|
+
let char = null;
|
|
73
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
74
|
+
if (index < path.length) {
|
|
75
|
+
char = path[index];
|
|
76
|
+
} else if (char === "/") {
|
|
77
|
+
break;
|
|
78
|
+
} else {
|
|
79
|
+
char = "/";
|
|
80
|
+
}
|
|
81
|
+
if (char === "/") {
|
|
82
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
83
|
+
} else if (dots === 2) {
|
|
84
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
85
|
+
if (res.length > 2) {
|
|
86
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
87
|
+
if (lastSlashIndex === -1) {
|
|
88
|
+
res = "";
|
|
89
|
+
lastSegmentLength = 0;
|
|
90
|
+
} else {
|
|
91
|
+
res = res.slice(0, lastSlashIndex);
|
|
92
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
93
|
+
}
|
|
94
|
+
lastSlash = index;
|
|
95
|
+
dots = 0;
|
|
96
|
+
continue;
|
|
97
|
+
} else if (res.length > 0) {
|
|
98
|
+
res = "";
|
|
99
|
+
lastSegmentLength = 0;
|
|
100
|
+
lastSlash = index;
|
|
101
|
+
dots = 0;
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (allowAboveRoot) {
|
|
106
|
+
res += res.length > 0 ? "/.." : "..";
|
|
107
|
+
lastSegmentLength = 2;
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
if (res.length > 0) {
|
|
111
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
112
|
+
} else {
|
|
113
|
+
res = path.slice(lastSlash + 1, index);
|
|
114
|
+
}
|
|
115
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
116
|
+
}
|
|
117
|
+
lastSlash = index;
|
|
118
|
+
dots = 0;
|
|
119
|
+
} else if (char === "." && dots !== -1) {
|
|
120
|
+
++dots;
|
|
121
|
+
} else {
|
|
122
|
+
dots = -1;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return res;
|
|
126
|
+
}
|
|
127
|
+
_chunk3GQAWCBQjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
128
|
+
var isAbsolute = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(p) {
|
|
129
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
130
|
+
}, "isAbsolute");
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SLCOHXD3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GQ6ZBQ6I.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NCFX2MWO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkECSCURQQjs = require('./chunk-ECSCURQQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk66FRJGINjs = require('./chunk-66FRJGIN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,14 +15,14 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
// src/generators/neutral-library/generator.ts
|
|
16
16
|
var _devkit = require('@nx/devkit');
|
|
17
17
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
18
|
-
const filesDir =
|
|
18
|
+
const filesDir = _chunkJTAXCQX6js.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
19
19
|
const tsLibraryGeneratorOptions = {
|
|
20
20
|
...schema,
|
|
21
21
|
platform: "neutral",
|
|
22
22
|
devDependencies: {},
|
|
23
23
|
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
24
24
|
};
|
|
25
|
-
const options = await
|
|
25
|
+
const options = await _chunkECSCURQQjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
26
26
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.projectNames.projectFileName);
|
|
27
27
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
28
28
|
...schema,
|
|
@@ -40,12 +40,12 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
40
40
|
buildable: options.bundler && options.bundler !== "none",
|
|
41
41
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
42
42
|
});
|
|
43
|
-
await
|
|
43
|
+
await _chunkECSCURQQjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
44
44
|
await _devkit.formatFiles.call(void 0, tree);
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunk66FRJGINjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
49
49
|
hooks: {
|
|
50
50
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
51
51
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|