@storm-software/projen 0.21.30 → 0.21.32
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 +42 -0
- package/README.md +1 -2
- package/dist/{chunk-WFD75WAF.js → chunk-ICQM664N.js} +44 -1
- package/dist/{chunk-JKJGW5KU.mjs → chunk-KZ5V74F3.mjs} +44 -1
- package/dist/{chunk-INHBPPR3.mjs → chunk-PKTJNBBU.mjs} +62 -10
- package/dist/{chunk-P7DQ7AYG.js → chunk-PUFLVRUC.js} +134 -82
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +2 -2
- package/dist/src/components/nx-workspace.mjs +1 -1
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.21.31](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.31) (11/13/2025)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Reformat workspace package files
|
|
10
|
+
([a0fb66d75](https://github.com/storm-software/storm-ops/commit/a0fb66d75))
|
|
11
|
+
- **monorepo:** Reformat workspace files
|
|
12
|
+
([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
|
|
13
|
+
- **monorepo:** Regenerate README markdown files
|
|
14
|
+
([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Added the `napi` executor to build rust bindings
|
|
19
|
+
([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
|
|
20
|
+
|
|
21
|
+
### Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated **workspace-tools** to **v1.293.1**
|
|
24
|
+
- Updated **config-tools** to **v1.188.31**
|
|
25
|
+
- Updated **config** to **v1.134.31**
|
|
26
|
+
|
|
27
|
+
## [0.21.30](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.30) (11/13/2025)
|
|
28
|
+
|
|
29
|
+
### Miscellaneous
|
|
30
|
+
|
|
31
|
+
- **monorepo:** Reformat workspace files
|
|
32
|
+
([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
|
|
33
|
+
- **monorepo:** Regenerate README markdown files
|
|
34
|
+
([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
- **workspace-tools:** Added the `napi` executor to build rust bindings
|
|
39
|
+
([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
|
|
40
|
+
|
|
41
|
+
### Updated Dependencies
|
|
42
|
+
|
|
43
|
+
- Updated **workspace-tools** to **v1.293.0**
|
|
44
|
+
- Updated **config-tools** to **v1.188.30**
|
|
45
|
+
- Updated **config** to **v1.134.30**
|
|
46
|
+
|
|
5
47
|
## [0.21.29](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.29) (11/12/2025)
|
|
6
48
|
|
|
7
49
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Projen Tools](#storm-projen-tools)
|
|
@@ -14,6 +14,7 @@ function normalizeWindowsPath(input = "") {
|
|
|
14
14
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
15
15
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
16
16
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
17
|
+
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
17
18
|
var correctPaths = function(path) {
|
|
18
19
|
if (!path || path.length === 0) {
|
|
19
20
|
return ".";
|
|
@@ -64,6 +65,30 @@ var joinPaths = function(...segments) {
|
|
|
64
65
|
}
|
|
65
66
|
return correctPaths(path);
|
|
66
67
|
};
|
|
68
|
+
function cwd() {
|
|
69
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
70
|
+
return process.cwd().replace(/\\/g, "/");
|
|
71
|
+
}
|
|
72
|
+
return "/";
|
|
73
|
+
}
|
|
74
|
+
var resolve = function(...arguments_) {
|
|
75
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
76
|
+
let resolvedPath = "";
|
|
77
|
+
let resolvedAbsolute = false;
|
|
78
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
79
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
80
|
+
if (!path || path.length === 0) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
84
|
+
resolvedAbsolute = isAbsolute(path);
|
|
85
|
+
}
|
|
86
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
87
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
88
|
+
return `/${resolvedPath}`;
|
|
89
|
+
}
|
|
90
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
91
|
+
};
|
|
67
92
|
function normalizeString(path, allowAboveRoot) {
|
|
68
93
|
let res = "";
|
|
69
94
|
let lastSegmentLength = 0;
|
|
@@ -127,8 +152,26 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
127
152
|
var isAbsolute = function(p) {
|
|
128
153
|
return _IS_ABSOLUTE_RE.test(p);
|
|
129
154
|
};
|
|
155
|
+
var relative = function(from, to) {
|
|
156
|
+
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
157
|
+
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
158
|
+
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
159
|
+
return _to.join("/");
|
|
160
|
+
}
|
|
161
|
+
const _fromCopy = [..._from];
|
|
162
|
+
for (const segment of _fromCopy) {
|
|
163
|
+
if (_to[0] !== segment) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
_from.shift();
|
|
167
|
+
_to.shift();
|
|
168
|
+
}
|
|
169
|
+
return [..._from.map(() => ".."), ..._to].join("/");
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
|
|
130
173
|
|
|
131
174
|
|
|
132
175
|
|
|
133
176
|
|
|
134
|
-
exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
|
|
177
|
+
exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.isAbsolute = isAbsolute; exports.relative = relative;
|
|
@@ -14,6 +14,7 @@ function normalizeWindowsPath(input = "") {
|
|
|
14
14
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
15
15
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
16
16
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
17
|
+
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
17
18
|
var correctPaths = function(path) {
|
|
18
19
|
if (!path || path.length === 0) {
|
|
19
20
|
return ".";
|
|
@@ -64,6 +65,30 @@ var joinPaths = function(...segments) {
|
|
|
64
65
|
}
|
|
65
66
|
return correctPaths(path);
|
|
66
67
|
};
|
|
68
|
+
function cwd() {
|
|
69
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
70
|
+
return process.cwd().replace(/\\/g, "/");
|
|
71
|
+
}
|
|
72
|
+
return "/";
|
|
73
|
+
}
|
|
74
|
+
var resolve = function(...arguments_) {
|
|
75
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
76
|
+
let resolvedPath = "";
|
|
77
|
+
let resolvedAbsolute = false;
|
|
78
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
79
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
80
|
+
if (!path || path.length === 0) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
84
|
+
resolvedAbsolute = isAbsolute(path);
|
|
85
|
+
}
|
|
86
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
87
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
88
|
+
return `/${resolvedPath}`;
|
|
89
|
+
}
|
|
90
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
91
|
+
};
|
|
67
92
|
function normalizeString(path, allowAboveRoot) {
|
|
68
93
|
let res = "";
|
|
69
94
|
let lastSegmentLength = 0;
|
|
@@ -127,8 +152,26 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
127
152
|
var isAbsolute = function(p) {
|
|
128
153
|
return _IS_ABSOLUTE_RE.test(p);
|
|
129
154
|
};
|
|
155
|
+
var relative = function(from, to) {
|
|
156
|
+
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
157
|
+
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
158
|
+
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
159
|
+
return _to.join("/");
|
|
160
|
+
}
|
|
161
|
+
const _fromCopy = [..._from];
|
|
162
|
+
for (const segment of _fromCopy) {
|
|
163
|
+
if (_to[0] !== segment) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
_from.shift();
|
|
167
|
+
_to.shift();
|
|
168
|
+
}
|
|
169
|
+
return [..._from.map(() => ".."), ..._to].join("/");
|
|
170
|
+
};
|
|
130
171
|
|
|
131
172
|
export {
|
|
132
173
|
correctPaths,
|
|
133
|
-
joinPaths
|
|
174
|
+
joinPaths,
|
|
175
|
+
isAbsolute,
|
|
176
|
+
relative
|
|
134
177
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
isAbsolute,
|
|
4
|
+
joinPaths,
|
|
5
|
+
relative
|
|
6
|
+
} from "./chunk-KZ5V74F3.mjs";
|
|
5
7
|
import {
|
|
6
8
|
__dirname,
|
|
7
9
|
init_esm_shims
|
|
@@ -2107,7 +2109,7 @@ import {
|
|
|
2107
2109
|
execSync,
|
|
2108
2110
|
spawn
|
|
2109
2111
|
} from "node:child_process";
|
|
2110
|
-
import { relative } from "node:path";
|
|
2112
|
+
import { relative as relative2 } from "node:path";
|
|
2111
2113
|
var INVALID_CARGO_ARGS = [
|
|
2112
2114
|
"allFeatures",
|
|
2113
2115
|
"allTargets",
|
|
@@ -2382,7 +2384,7 @@ import _resolve from "resolve";
|
|
|
2382
2384
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
2383
2385
|
init_esm_shims();
|
|
2384
2386
|
import { stripIndents } from "@nx/devkit";
|
|
2385
|
-
import { relative as
|
|
2387
|
+
import { relative as relative3 } from "path";
|
|
2386
2388
|
|
|
2387
2389
|
// ../build-tools/src/types.ts
|
|
2388
2390
|
init_esm_shims();
|
|
@@ -3146,15 +3148,64 @@ async function napiExecutor(options, context, config) {
|
|
|
3146
3148
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3147
3149
|
}
|
|
3148
3150
|
const napi = new NapiCli();
|
|
3149
|
-
const
|
|
3151
|
+
const normalizedOptions = { ...options };
|
|
3150
3152
|
const metadata = cargoMetadata();
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3153
|
+
normalizedOptions.targetDir = options.targetDir || metadata?.target_directory || joinPaths(config.workspaceRoot, "dist", "target");
|
|
3154
|
+
normalizedOptions.outputDir = options.outputPath;
|
|
3155
|
+
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
3156
|
+
if (options.cwd) {
|
|
3157
|
+
normalizedOptions.cwd = correctPaths(options.cwd);
|
|
3158
|
+
} else {
|
|
3159
|
+
normalizedOptions.cwd = correctPaths(projectRoot);
|
|
3160
|
+
const absoluteProjectRoot = joinPaths(
|
|
3161
|
+
config.workspaceRoot,
|
|
3162
|
+
projectRoot || "."
|
|
3163
|
+
);
|
|
3164
|
+
if (normalizedOptions.outputDir) {
|
|
3165
|
+
normalizedOptions.outputDir = relative(
|
|
3166
|
+
absoluteProjectRoot,
|
|
3167
|
+
correctPaths(
|
|
3168
|
+
isAbsolute(normalizedOptions.outputDir) ? normalizedOptions.outputDir : joinPaths(config.workspaceRoot, normalizedOptions.outputDir)
|
|
3169
|
+
)
|
|
3170
|
+
);
|
|
3171
|
+
}
|
|
3172
|
+
if (normalizedOptions.packageJsonPath) {
|
|
3173
|
+
normalizedOptions.packageJsonPath = relative(
|
|
3174
|
+
absoluteProjectRoot,
|
|
3175
|
+
correctPaths(
|
|
3176
|
+
isAbsolute(normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : joinPaths(config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3177
|
+
)
|
|
3178
|
+
);
|
|
3179
|
+
}
|
|
3180
|
+
if (normalizedOptions.targetDir) {
|
|
3181
|
+
normalizedOptions.targetDir = relative(
|
|
3182
|
+
absoluteProjectRoot,
|
|
3183
|
+
correctPaths(
|
|
3184
|
+
isAbsolute(normalizedOptions.targetDir) ? normalizedOptions.targetDir : joinPaths(config.workspaceRoot, normalizedOptions.targetDir)
|
|
3185
|
+
)
|
|
3186
|
+
);
|
|
3187
|
+
}
|
|
3188
|
+
if (normalizedOptions.configPath) {
|
|
3189
|
+
normalizedOptions.configPath = relative(
|
|
3190
|
+
absoluteProjectRoot,
|
|
3191
|
+
correctPaths(
|
|
3192
|
+
isAbsolute(normalizedOptions.configPath) ? normalizedOptions.configPath : joinPaths(config.workspaceRoot, normalizedOptions.configPath)
|
|
3193
|
+
)
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3196
|
+
if (normalizedOptions.manifestPath) {
|
|
3197
|
+
normalizedOptions.manifestPath = relative(
|
|
3198
|
+
absoluteProjectRoot,
|
|
3199
|
+
correctPaths(
|
|
3200
|
+
isAbsolute(normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : joinPaths(config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3201
|
+
)
|
|
3202
|
+
);
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3154
3205
|
if (process.env.VERCEL) {
|
|
3155
3206
|
return { success: true };
|
|
3156
3207
|
}
|
|
3157
|
-
const { task } = await napi.build(
|
|
3208
|
+
const { task } = await napi.build(normalizedOptions);
|
|
3158
3209
|
return { success: true, terminalOutput: await task };
|
|
3159
3210
|
}
|
|
3160
3211
|
var executor_default7 = withRunExecutor(
|
|
@@ -3164,11 +3215,12 @@ var executor_default7 = withRunExecutor(
|
|
|
3164
3215
|
skipReadingConfig: false,
|
|
3165
3216
|
hooks: {
|
|
3166
3217
|
applyDefaultOptions: (options) => {
|
|
3167
|
-
options.outputPath ??= "
|
|
3218
|
+
options.outputPath ??= "{sourceRoot}";
|
|
3168
3219
|
options.toolchain ??= "stable";
|
|
3169
3220
|
options.dtsCache ??= true;
|
|
3170
3221
|
options.platform ??= true;
|
|
3171
3222
|
options.constEnum ??= false;
|
|
3223
|
+
options.verbose ??= false;
|
|
3172
3224
|
options.jsBinding ??= "binding.js";
|
|
3173
3225
|
options.dts ??= "binding.d.ts";
|
|
3174
3226
|
return options;
|
|
@@ -1,7 +1,9 @@
|
|
|
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(); } } 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
3
|
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkICQM664Njs = require('./chunk-ICQM664N.js');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
var _chunkANVGCRXXjs = require('./chunk-ANVGCRXX.js');
|
|
@@ -417,11 +419,11 @@ var rootDirectories = [
|
|
|
417
419
|
];
|
|
418
420
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
419
421
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
420
|
-
return
|
|
422
|
+
return _chunkICQM664Njs.correctPaths.call(void 0,
|
|
421
423
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
422
424
|
);
|
|
423
425
|
}
|
|
424
|
-
return
|
|
426
|
+
return _chunkICQM664Njs.correctPaths.call(void 0,
|
|
425
427
|
findFolderUp(
|
|
426
428
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
427
429
|
rootFiles,
|
|
@@ -1132,7 +1134,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1132
1134
|
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1133
1135
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1134
1136
|
const file = await _promises.readFile.call(void 0,
|
|
1135
|
-
|
|
1137
|
+
_chunkICQM664Njs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1136
1138
|
"utf8"
|
|
1137
1139
|
);
|
|
1138
1140
|
if (file) {
|
|
@@ -1216,7 +1218,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1216
1218
|
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
1217
1219
|
jitiOptions: {
|
|
1218
1220
|
debug: false,
|
|
1219
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1221
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkICQM664Njs.joinPaths.call(void 0,
|
|
1220
1222
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1221
1223
|
"jiti"
|
|
1222
1224
|
)
|
|
@@ -1230,7 +1232,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1230
1232
|
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
1231
1233
|
jitiOptions: {
|
|
1232
1234
|
debug: false,
|
|
1233
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1235
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkICQM664Njs.joinPaths.call(void 0,
|
|
1234
1236
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1235
1237
|
"jiti"
|
|
1236
1238
|
)
|
|
@@ -1349,15 +1351,15 @@ var getConfigEnv = () => {
|
|
|
1349
1351
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1350
1352
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1351
1353
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1352
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1353
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1354
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1355
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1354
1356
|
directories: {
|
|
1355
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1356
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1357
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1358
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1359
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1360
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1357
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1358
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1359
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1360
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1361
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1362
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkICQM664Njs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1361
1363
|
},
|
|
1362
1364
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1363
1365
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1648,42 +1650,42 @@ var setConfigEnv = (config) => {
|
|
|
1648
1650
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1649
1651
|
}
|
|
1650
1652
|
if (config.configFile) {
|
|
1651
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1653
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkICQM664Njs.correctPaths.call(void 0,
|
|
1652
1654
|
config.configFile
|
|
1653
1655
|
);
|
|
1654
1656
|
}
|
|
1655
1657
|
if (config.workspaceRoot) {
|
|
1656
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1657
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1658
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1658
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkICQM664Njs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1659
|
+
process.env.NX_WORKSPACE_ROOT = _chunkICQM664Njs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1660
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkICQM664Njs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1659
1661
|
}
|
|
1660
1662
|
if (config.directories) {
|
|
1661
1663
|
if (!config.skipCache && config.directories.cache) {
|
|
1662
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1664
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkICQM664Njs.correctPaths.call(void 0,
|
|
1663
1665
|
config.directories.cache
|
|
1664
1666
|
);
|
|
1665
1667
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1666
1668
|
}
|
|
1667
1669
|
if (config.directories.data) {
|
|
1668
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1670
|
+
process.env[`${prefix}DATA_DIR`] = _chunkICQM664Njs.correctPaths.call(void 0, config.directories.data);
|
|
1669
1671
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1670
1672
|
}
|
|
1671
1673
|
if (config.directories.config) {
|
|
1672
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1674
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkICQM664Njs.correctPaths.call(void 0,
|
|
1673
1675
|
config.directories.config
|
|
1674
1676
|
);
|
|
1675
1677
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1676
1678
|
}
|
|
1677
1679
|
if (config.directories.temp) {
|
|
1678
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1680
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkICQM664Njs.correctPaths.call(void 0, config.directories.temp);
|
|
1679
1681
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1680
1682
|
}
|
|
1681
1683
|
if (config.directories.log) {
|
|
1682
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1684
|
+
process.env[`${prefix}LOG_DIR`] = _chunkICQM664Njs.correctPaths.call(void 0, config.directories.log);
|
|
1683
1685
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1684
1686
|
}
|
|
1685
1687
|
if (config.directories.build) {
|
|
1686
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1688
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkICQM664Njs.correctPaths.call(void 0,
|
|
1687
1689
|
config.directories.build
|
|
1688
1690
|
);
|
|
1689
1691
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1899,7 +1901,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, s
|
|
|
1899
1901
|
defaultConfig
|
|
1900
1902
|
);
|
|
1901
1903
|
if (!configInput.variant) {
|
|
1902
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
1904
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1903
1905
|
}
|
|
1904
1906
|
try {
|
|
1905
1907
|
result = applyDefaultConfig(
|
|
@@ -2422,7 +2424,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2422
2424
|
}
|
|
2423
2425
|
writeTrace(
|
|
2424
2426
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2425
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2427
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkICQM664Njs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2426
2428
|
config
|
|
2427
2429
|
);
|
|
2428
2430
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2435,17 +2437,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2435
2437
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2436
2438
|
if (includeSrc === true) {
|
|
2437
2439
|
writeDebug(
|
|
2438
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2440
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkICQM664Njs.joinPaths.call(void 0,
|
|
2439
2441
|
outputPath,
|
|
2440
2442
|
"src"
|
|
2441
2443
|
)}`,
|
|
2442
2444
|
config
|
|
2443
2445
|
);
|
|
2444
2446
|
const files = await _glob.glob.call(void 0, [
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2447
|
+
_chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2448
|
+
_chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2449
|
+
_chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2450
|
+
_chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2449
2451
|
]);
|
|
2450
2452
|
await Promise.allSettled(
|
|
2451
2453
|
files.map(
|
|
@@ -2501,7 +2503,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2501
2503
|
)) {
|
|
2502
2504
|
const projectNode = project.node;
|
|
2503
2505
|
if (projectNode.data.root) {
|
|
2504
|
-
const projectPackageJsonPath =
|
|
2506
|
+
const projectPackageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
2505
2507
|
workspaceRoot2,
|
|
2506
2508
|
projectNode.data.root,
|
|
2507
2509
|
"package.json"
|
|
@@ -2523,7 +2525,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2523
2525
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2524
2526
|
);
|
|
2525
2527
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2526
|
-
|
|
2528
|
+
_chunkICQM664Njs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2527
2529
|
"utf8"
|
|
2528
2530
|
);
|
|
2529
2531
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2536,7 +2538,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2536
2538
|
}
|
|
2537
2539
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName2], 'access', _99 => _99.implicitDependencies, 'optionalAccess', _100 => _100.reduce, 'call', _101 => _101((ret, dep) => {
|
|
2538
2540
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2539
|
-
const depPackageJsonPath =
|
|
2541
|
+
const depPackageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
2540
2542
|
workspaceRoot2,
|
|
2541
2543
|
projectConfigurations.projects[dep].root,
|
|
2542
2544
|
"package.json"
|
|
@@ -2574,7 +2576,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2574
2576
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2575
2577
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2576
2578
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2577
|
-
|
|
2579
|
+
_chunkICQM664Njs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2578
2580
|
"utf8"
|
|
2579
2581
|
);
|
|
2580
2582
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2585,7 +2587,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2585
2587
|
if (distSrc.startsWith("/")) {
|
|
2586
2588
|
distSrc = distSrc.substring(1);
|
|
2587
2589
|
}
|
|
2588
|
-
packageJson.source ??= `${
|
|
2590
|
+
packageJson.source ??= `${_chunkICQM664Njs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2589
2591
|
}
|
|
2590
2592
|
packageJson.files ??= ["dist/**/*"];
|
|
2591
2593
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2610,7 +2612,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2610
2612
|
packageJson.contributors = [packageJson.author];
|
|
2611
2613
|
}
|
|
2612
2614
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2613
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2615
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkICQM664Njs.joinPaths.call(void 0, "packages", projectName);
|
|
2614
2616
|
return packageJson;
|
|
2615
2617
|
};
|
|
2616
2618
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2773,7 +2775,7 @@ async function resolveContext(userOptions) {
|
|
|
2773
2775
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2774
2776
|
exitOnError: true
|
|
2775
2777
|
});
|
|
2776
|
-
const projectJsonPath =
|
|
2778
|
+
const projectJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
2777
2779
|
workspaceRoot2.dir,
|
|
2778
2780
|
projectRoot,
|
|
2779
2781
|
"project.json"
|
|
@@ -2792,7 +2794,7 @@ async function resolveContext(userOptions) {
|
|
|
2792
2794
|
}
|
|
2793
2795
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2794
2796
|
options.name ??= projectName;
|
|
2795
|
-
const packageJsonPath =
|
|
2797
|
+
const packageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
2796
2798
|
workspaceRoot2.dir,
|
|
2797
2799
|
options.projectRoot,
|
|
2798
2800
|
"package.json"
|
|
@@ -2804,7 +2806,7 @@ async function resolveContext(userOptions) {
|
|
|
2804
2806
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2805
2807
|
const resolvedOptions = {
|
|
2806
2808
|
...options,
|
|
2807
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2809
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkICQM664Njs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2808
2810
|
metafile: userOptions.mode === "development",
|
|
2809
2811
|
clean: false,
|
|
2810
2812
|
env,
|
|
@@ -2829,8 +2831,8 @@ async function resolveContext(userOptions) {
|
|
|
2829
2831
|
projectConfigurations,
|
|
2830
2832
|
projectName,
|
|
2831
2833
|
projectGraph,
|
|
2832
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2833
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2834
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkICQM664Njs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2835
|
+
outputPath: resolvedOptions.outputPath || _chunkICQM664Njs.joinPaths.call(void 0,
|
|
2834
2836
|
workspaceConfig.workspaceRoot,
|
|
2835
2837
|
"dist",
|
|
2836
2838
|
resolvedOptions.projectRoot
|
|
@@ -2855,10 +2857,10 @@ _chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
|
2855
2857
|
|
|
2856
2858
|
|
|
2857
2859
|
async function generatePackageJson(context) {
|
|
2858
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2860
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2859
2861
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2860
2862
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2861
|
-
const packageJsonPath =
|
|
2863
|
+
const packageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
2862
2864
|
context.options.projectRoot,
|
|
2863
2865
|
"project.json"
|
|
2864
2866
|
);
|
|
@@ -2866,7 +2868,7 @@ async function generatePackageJson(context) {
|
|
|
2866
2868
|
throw new Error("Cannot find package.json configuration");
|
|
2867
2869
|
}
|
|
2868
2870
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2869
|
-
|
|
2871
|
+
_chunkICQM664Njs.joinPaths.call(void 0,
|
|
2870
2872
|
context.workspaceConfig.workspaceRoot,
|
|
2871
2873
|
context.options.projectRoot,
|
|
2872
2874
|
"package.json"
|
|
@@ -2972,7 +2974,7 @@ async function generatePackageJson(context) {
|
|
|
2972
2974
|
}
|
|
2973
2975
|
}
|
|
2974
2976
|
await _devkit.writeJsonFile.call(void 0,
|
|
2975
|
-
|
|
2977
|
+
_chunkICQM664Njs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2976
2978
|
packageJson
|
|
2977
2979
|
);
|
|
2978
2980
|
stopwatch();
|
|
@@ -3009,7 +3011,7 @@ async function executeTsup(context) {
|
|
|
3009
3011
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
3010
3012
|
await build({
|
|
3011
3013
|
...context.options,
|
|
3012
|
-
outDir: context.options.distDir ?
|
|
3014
|
+
outDir: context.options.distDir ? _chunkICQM664Njs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
3013
3015
|
workspaceConfig: context.workspaceConfig
|
|
3014
3016
|
});
|
|
3015
3017
|
stopwatch();
|
|
@@ -3124,7 +3126,7 @@ var _jiti = require('jiti');
|
|
|
3124
3126
|
var _fileutils = require('nx/src/utils/fileutils');
|
|
3125
3127
|
async function napiExecutor(options, context, config) {
|
|
3126
3128
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3127
|
-
fsCache: config.skipCache ? false :
|
|
3129
|
+
fsCache: config.skipCache ? false : _chunkICQM664Njs.joinPaths.call(void 0,
|
|
3128
3130
|
config.workspaceRoot,
|
|
3129
3131
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3130
3132
|
"jiti"
|
|
@@ -3140,20 +3142,69 @@ async function napiExecutor(options, context, config) {
|
|
|
3140
3142
|
);
|
|
3141
3143
|
}
|
|
3142
3144
|
const projectRoot = _optionalChain([context, 'access', _145 => _145.projectGraph, 'optionalAccess', _146 => _146.nodes, 'access', _147 => _147[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _148 => _148.data, 'access', _149 => _149.root]);
|
|
3143
|
-
const packageJson =
|
|
3145
|
+
const packageJson = _chunkICQM664Njs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3144
3146
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3145
3147
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
3146
3148
|
}
|
|
3147
3149
|
const napi = new NapiCli();
|
|
3148
|
-
const
|
|
3150
|
+
const normalizedOptions = { ...options };
|
|
3149
3151
|
const metadata = cargoMetadata();
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3152
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _150 => _150.target_directory]) || _chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3153
|
+
normalizedOptions.outputDir = options.outputPath;
|
|
3154
|
+
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
3155
|
+
if (options.cwd) {
|
|
3156
|
+
normalizedOptions.cwd = _chunkICQM664Njs.correctPaths.call(void 0, options.cwd);
|
|
3157
|
+
} else {
|
|
3158
|
+
normalizedOptions.cwd = _chunkICQM664Njs.correctPaths.call(void 0, projectRoot);
|
|
3159
|
+
const absoluteProjectRoot = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
3160
|
+
config.workspaceRoot,
|
|
3161
|
+
projectRoot || "."
|
|
3162
|
+
);
|
|
3163
|
+
if (normalizedOptions.outputDir) {
|
|
3164
|
+
normalizedOptions.outputDir = _chunkICQM664Njs.relative.call(void 0,
|
|
3165
|
+
absoluteProjectRoot,
|
|
3166
|
+
_chunkICQM664Njs.correctPaths.call(void 0,
|
|
3167
|
+
_chunkICQM664Njs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
3168
|
+
)
|
|
3169
|
+
);
|
|
3170
|
+
}
|
|
3171
|
+
if (normalizedOptions.packageJsonPath) {
|
|
3172
|
+
normalizedOptions.packageJsonPath = _chunkICQM664Njs.relative.call(void 0,
|
|
3173
|
+
absoluteProjectRoot,
|
|
3174
|
+
_chunkICQM664Njs.correctPaths.call(void 0,
|
|
3175
|
+
_chunkICQM664Njs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
3176
|
+
)
|
|
3177
|
+
);
|
|
3178
|
+
}
|
|
3179
|
+
if (normalizedOptions.targetDir) {
|
|
3180
|
+
normalizedOptions.targetDir = _chunkICQM664Njs.relative.call(void 0,
|
|
3181
|
+
absoluteProjectRoot,
|
|
3182
|
+
_chunkICQM664Njs.correctPaths.call(void 0,
|
|
3183
|
+
_chunkICQM664Njs.isAbsolute.call(void 0, normalizedOptions.targetDir) ? normalizedOptions.targetDir : _chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.targetDir)
|
|
3184
|
+
)
|
|
3185
|
+
);
|
|
3186
|
+
}
|
|
3187
|
+
if (normalizedOptions.configPath) {
|
|
3188
|
+
normalizedOptions.configPath = _chunkICQM664Njs.relative.call(void 0,
|
|
3189
|
+
absoluteProjectRoot,
|
|
3190
|
+
_chunkICQM664Njs.correctPaths.call(void 0,
|
|
3191
|
+
_chunkICQM664Njs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
3192
|
+
)
|
|
3193
|
+
);
|
|
3194
|
+
}
|
|
3195
|
+
if (normalizedOptions.manifestPath) {
|
|
3196
|
+
normalizedOptions.manifestPath = _chunkICQM664Njs.relative.call(void 0,
|
|
3197
|
+
absoluteProjectRoot,
|
|
3198
|
+
_chunkICQM664Njs.correctPaths.call(void 0,
|
|
3199
|
+
_chunkICQM664Njs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkICQM664Njs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
3200
|
+
)
|
|
3201
|
+
);
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3153
3204
|
if (process.env.VERCEL) {
|
|
3154
3205
|
return { success: true };
|
|
3155
3206
|
}
|
|
3156
|
-
const { task } = await napi.build(
|
|
3207
|
+
const { task } = await napi.build(normalizedOptions);
|
|
3157
3208
|
return { success: true, terminalOutput: await task };
|
|
3158
3209
|
}
|
|
3159
3210
|
var executor_default7 = withRunExecutor(
|
|
@@ -3163,11 +3214,12 @@ var executor_default7 = withRunExecutor(
|
|
|
3163
3214
|
skipReadingConfig: false,
|
|
3164
3215
|
hooks: {
|
|
3165
3216
|
applyDefaultOptions: (options) => {
|
|
3166
|
-
options.outputPath ??= "
|
|
3217
|
+
options.outputPath ??= "{sourceRoot}";
|
|
3167
3218
|
options.toolchain ??= "stable";
|
|
3168
3219
|
options.dtsCache ??= true;
|
|
3169
3220
|
options.platform ??= true;
|
|
3170
3221
|
options.constEnum ??= false;
|
|
3222
|
+
options.verbose ??= false;
|
|
3171
3223
|
options.jsBinding ??= "binding.js";
|
|
3172
3224
|
options.dts ??= "binding.d.ts";
|
|
3173
3225
|
return options;
|
|
@@ -3401,7 +3453,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3401
3453
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3402
3454
|
exitOnError: true
|
|
3403
3455
|
});
|
|
3404
|
-
const projectJsonPath =
|
|
3456
|
+
const projectJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
3405
3457
|
workspaceRoot2,
|
|
3406
3458
|
options.projectRoot,
|
|
3407
3459
|
"project.json"
|
|
@@ -3418,7 +3470,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3418
3470
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
3419
3471
|
);
|
|
3420
3472
|
}
|
|
3421
|
-
const packageJsonPath =
|
|
3473
|
+
const packageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
3422
3474
|
workspaceRoot2,
|
|
3423
3475
|
options.projectRoot,
|
|
3424
3476
|
"package.json"
|
|
@@ -3427,13 +3479,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
3427
3479
|
throw new Error("Cannot find package.json configuration");
|
|
3428
3480
|
}
|
|
3429
3481
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3430
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
3482
|
+
const sourceRoot = projectJson.sourceRoot || _chunkICQM664Njs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
3431
3483
|
const result = {
|
|
3432
3484
|
name: projectName,
|
|
3433
3485
|
mode: "production",
|
|
3434
3486
|
target: DEFAULT_TARGET,
|
|
3435
3487
|
generatePackageJson: true,
|
|
3436
|
-
outDir:
|
|
3488
|
+
outDir: _chunkICQM664Njs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
3437
3489
|
minify: !debug,
|
|
3438
3490
|
plugins: [],
|
|
3439
3491
|
assets: [],
|
|
@@ -3445,12 +3497,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
3445
3497
|
clean: false,
|
|
3446
3498
|
fixedExtension: true,
|
|
3447
3499
|
nodeProtocol: true,
|
|
3448
|
-
tsconfig:
|
|
3500
|
+
tsconfig: _chunkICQM664Njs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
3449
3501
|
debug,
|
|
3450
3502
|
sourceRoot,
|
|
3451
3503
|
cwd: workspaceConfig.workspaceRoot,
|
|
3452
3504
|
entry: {
|
|
3453
|
-
["index"]:
|
|
3505
|
+
["index"]: _chunkICQM664Njs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
3454
3506
|
},
|
|
3455
3507
|
workspace: true,
|
|
3456
3508
|
...options,
|
|
@@ -3469,15 +3521,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
3469
3521
|
return result;
|
|
3470
3522
|
};
|
|
3471
3523
|
async function generatePackageJson2(options) {
|
|
3472
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
3524
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3473
3525
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3474
3526
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3475
|
-
const packageJsonPath =
|
|
3527
|
+
const packageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3476
3528
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3477
3529
|
throw new Error("Cannot find package.json configuration");
|
|
3478
3530
|
}
|
|
3479
3531
|
const packageJsonFile = await _promises2.default.readFile(
|
|
3480
|
-
|
|
3532
|
+
_chunkICQM664Njs.joinPaths.call(void 0,
|
|
3481
3533
|
options.workspaceConfig.workspaceRoot,
|
|
3482
3534
|
options.projectRoot,
|
|
3483
3535
|
"package.json"
|
|
@@ -3539,7 +3591,7 @@ async function generatePackageJson2(options) {
|
|
|
3539
3591
|
},
|
|
3540
3592
|
packageJson.exports
|
|
3541
3593
|
);
|
|
3542
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
3594
|
+
await _devkit.writeJsonFile.call(void 0, _chunkICQM664Njs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
3543
3595
|
stopwatch();
|
|
3544
3596
|
}
|
|
3545
3597
|
return options;
|
|
@@ -3733,7 +3785,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3733
3785
|
);
|
|
3734
3786
|
}
|
|
3735
3787
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3736
|
-
fsCache: config.skipCache ? false :
|
|
3788
|
+
fsCache: config.skipCache ? false : _chunkICQM664Njs.joinPaths.call(void 0,
|
|
3737
3789
|
config.workspaceRoot,
|
|
3738
3790
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3739
3791
|
"jiti"
|
|
@@ -3755,7 +3807,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3755
3807
|
{
|
|
3756
3808
|
stubOptions: {
|
|
3757
3809
|
jiti: {
|
|
3758
|
-
fsCache: config.skipCache ? false :
|
|
3810
|
+
fsCache: config.skipCache ? false : _chunkICQM664Njs.joinPaths.call(void 0,
|
|
3759
3811
|
config.workspaceRoot,
|
|
3760
3812
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3761
3813
|
"jiti"
|
|
@@ -3955,16 +4007,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3955
4007
|
const projectConfig = {
|
|
3956
4008
|
root: normalized.directory,
|
|
3957
4009
|
projectType: "library",
|
|
3958
|
-
sourceRoot:
|
|
4010
|
+
sourceRoot: _chunkICQM664Njs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3959
4011
|
targets: {
|
|
3960
4012
|
build: {
|
|
3961
4013
|
executor: options.buildExecutor,
|
|
3962
4014
|
outputs: ["{options.outputPath}"],
|
|
3963
4015
|
options: {
|
|
3964
|
-
entry: [
|
|
4016
|
+
entry: [_chunkICQM664Njs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3965
4017
|
outputPath: getOutputPath(normalized),
|
|
3966
|
-
tsconfig:
|
|
3967
|
-
project:
|
|
4018
|
+
tsconfig: _chunkICQM664Njs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
4019
|
+
project: _chunkICQM664Njs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3968
4020
|
defaultConfiguration: "production",
|
|
3969
4021
|
platform: "neutral",
|
|
3970
4022
|
assets: [
|
|
@@ -4021,7 +4073,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4021
4073
|
if (!normalized.importPath) {
|
|
4022
4074
|
normalized.importPath = normalized.name;
|
|
4023
4075
|
}
|
|
4024
|
-
const packageJsonPath =
|
|
4076
|
+
const packageJsonPath = _chunkICQM664Njs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
4025
4077
|
if (tree.exists(packageJsonPath)) {
|
|
4026
4078
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
4027
4079
|
if (!normalized.importPath) {
|
|
@@ -4078,14 +4130,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4078
4130
|
}));
|
|
4079
4131
|
}
|
|
4080
4132
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
4081
|
-
|
|
4133
|
+
_chunkICQM664Njs.joinPaths.call(void 0,
|
|
4082
4134
|
normalized.projectRoot,
|
|
4083
4135
|
"./src",
|
|
4084
4136
|
`index.${normalized.js ? "js" : "ts"}`
|
|
4085
4137
|
)
|
|
4086
4138
|
]);
|
|
4087
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
4088
|
-
|
|
4139
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkICQM664Njs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
4140
|
+
_chunkICQM664Njs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
4089
4141
|
]);
|
|
4090
4142
|
if (tree.exists("package.json")) {
|
|
4091
4143
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -4096,7 +4148,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4096
4148
|
description = packageJson.description;
|
|
4097
4149
|
}
|
|
4098
4150
|
}
|
|
4099
|
-
const tsconfigPath =
|
|
4151
|
+
const tsconfigPath = _chunkICQM664Njs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
4100
4152
|
if (tree.exists(tsconfigPath)) {
|
|
4101
4153
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
4102
4154
|
json.composite ??= true;
|
|
@@ -4124,7 +4176,7 @@ function getOutputPath(options) {
|
|
|
4124
4176
|
} else {
|
|
4125
4177
|
parts.push(options.projectRoot);
|
|
4126
4178
|
}
|
|
4127
|
-
return
|
|
4179
|
+
return _chunkICQM664Njs.joinPaths.call(void 0, ...parts);
|
|
4128
4180
|
}
|
|
4129
4181
|
function createProjectTsConfigJson(tree, options) {
|
|
4130
4182
|
const tsconfig = {
|
|
@@ -4132,7 +4184,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4132
4184
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _209 => _209.tsconfigOptions]), () => ( {})),
|
|
4133
4185
|
compilerOptions: {
|
|
4134
4186
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4135
|
-
outDir:
|
|
4187
|
+
outDir: _chunkICQM664Njs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4136
4188
|
noEmit: true,
|
|
4137
4189
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _210 => _210.tsconfigOptions, 'optionalAccess', _211 => _211.compilerOptions]), () => ( {}))
|
|
4138
4190
|
},
|
|
@@ -4150,7 +4202,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4150
4202
|
"src/**/*.test.ts"
|
|
4151
4203
|
]
|
|
4152
4204
|
};
|
|
4153
|
-
_devkit.writeJson.call(void 0, tree,
|
|
4205
|
+
_devkit.writeJson.call(void 0, tree, _chunkICQM664Njs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
4154
4206
|
}
|
|
4155
4207
|
async function normalizeOptions(tree, options, config) {
|
|
4156
4208
|
let importPath = options.importPath;
|
|
@@ -4215,7 +4267,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
4215
4267
|
|
|
4216
4268
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
4217
4269
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
4218
|
-
const filesDir =
|
|
4270
|
+
const filesDir = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
4219
4271
|
__dirname,
|
|
4220
4272
|
"src",
|
|
4221
4273
|
"generators",
|
|
@@ -4388,7 +4440,7 @@ _chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
|
4388
4440
|
|
|
4389
4441
|
|
|
4390
4442
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
4391
|
-
const filesDir =
|
|
4443
|
+
const filesDir = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
4392
4444
|
__dirname,
|
|
4393
4445
|
"src",
|
|
4394
4446
|
"generators",
|
|
@@ -4448,7 +4500,7 @@ _chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
|
4448
4500
|
|
|
4449
4501
|
|
|
4450
4502
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4451
|
-
const filesDir =
|
|
4503
|
+
const filesDir = _chunkICQM664Njs.joinPaths.call(void 0,
|
|
4452
4504
|
__dirname,
|
|
4453
4505
|
"src",
|
|
4454
4506
|
"generators",
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-2J4V6NGV.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkPUFLVRUCjs = require('./chunk-PUFLVRUC.js');
|
|
5
|
+
require('./chunk-ICQM664N.js');
|
|
6
6
|
require('./chunk-ANVGCRXX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkPUFLVRUCjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var _chunkTLCUVFDEjs = require('./chunk-TLCUVFDE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkPUFLVRUCjs = require('./chunk-PUFLVRUC.js');
|
|
8
|
+
require('./chunk-ICQM664N.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,10 +16,10 @@ var _chunkANVGCRXXjs = require('./chunk-ANVGCRXX.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkANVGCRXXjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunkPUFLVRUCjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkANVGCRXXjs.__reExport.call(void 0, index_exports, _chunkANVGCRXXjs.__toESM.call(void 0, _chunkTLCUVFDEjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunkPUFLVRUCjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkICQM664Njs = require('../../chunk-ICQM664N.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkANVGCRXXjs = require('../../chunk-ANVGCRXX.js');
|
|
@@ -551,7 +551,7 @@ var StormNxWorkspace = (_class = class extends _nxworkspace.NxWorkspace {
|
|
|
551
551
|
let StormWorkspaceConfig;
|
|
552
552
|
if (project.root.outdir) {
|
|
553
553
|
const StormWorkspaceConfigJson = _fs.readFileSync.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunkICQM664Njs.joinPaths.call(void 0, project.root.outdir, "storm-workspace.json"),
|
|
555
555
|
"utf8"
|
|
556
556
|
);
|
|
557
557
|
StormWorkspaceConfig = JSON.parse(StormWorkspaceConfigJson);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkPUFLVRUCjs = require('../../../chunk-PUFLVRUC.js');
|
|
5
|
+
require('../../../chunk-ICQM664N.js');
|
|
6
6
|
require('../../../chunk-ANVGCRXX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkPUFLVRUCjs.generator_default; exports.initGeneratorFn = _chunkPUFLVRUCjs.initGeneratorFn;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default,
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-PKTJNBBU.mjs";
|
|
5
|
+
import "../../../chunk-KZ5V74F3.mjs";
|
|
6
6
|
import "../../../chunk-ETGYWVYC.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/projen",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.32",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing Projen configuration automation within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
],
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@nx/devkit": "^22.0.3",
|
|
118
|
-
"@storm-software/config": "1.134.
|
|
119
|
-
"@storm-software/config-tools": "1.188.
|
|
120
|
-
"@storm-software/workspace-tools": "1.
|
|
118
|
+
"@storm-software/config": "1.134.31",
|
|
119
|
+
"@storm-software/config-tools": "1.188.31",
|
|
120
|
+
"@storm-software/workspace-tools": "1.293.1",
|
|
121
121
|
"projen": "^0.91.6",
|
|
122
122
|
"tsup": "8.4.0",
|
|
123
123
|
"untyped": "1.5.2"
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
143
|
"executors": "./executors.json",
|
|
144
144
|
"generators": "./generators.json",
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "602be70a267e6bd8ac6c4c5e922151a6b48aa748"
|
|
146
146
|
}
|