@storm-software/workspace-tools 1.296.19 → 1.296.20
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/package.json +10 -10
- package/dist/chunk-27VV54AU.mjs +0 -31
- package/dist/chunk-2FWYS4LO.mjs +0 -524
- package/dist/chunk-3VN2GWX7.js +0 -250
- package/dist/chunk-4QZG36UZ.js +0 -524
- package/dist/chunk-AD2DJUS6.js +0 -93
- package/dist/chunk-AZIYZ7G2.mjs +0 -41
- package/dist/chunk-B6CXZA7K.mjs +0 -32
- package/dist/chunk-D6XEM3XX.mjs +0 -93
- package/dist/chunk-DSUFN6ZC.mjs +0 -253
- package/dist/chunk-E5RTBBOT.mjs +0 -32
- package/dist/chunk-EC34LBD2.mjs +0 -128
- package/dist/chunk-FE7ZULOD.js +0 -32
- package/dist/chunk-I2LXWNCS.js +0 -41
- package/dist/chunk-JEPLNTO7.js +0 -79
- package/dist/chunk-K6ADTQ4I.js +0 -32
- package/dist/chunk-KILRQ3CE.js +0 -32
- package/dist/chunk-O5EFCUR2.js +0 -31
- package/dist/chunk-OZRIT35E.mjs +0 -82
- package/dist/chunk-WIKTNOO2.js +0 -128
- package/dist/chunk-WNGTBFG5.mjs +0 -32
package/dist/chunk-K6ADTQ4I.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-format/executor.ts
|
|
10
|
-
async function cargoFormatExecutor(options, context) {
|
|
11
|
-
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
|
-
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
-
}
|
|
14
|
-
var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
|
|
15
|
-
"Cargo - Format",
|
|
16
|
-
cargoFormatExecutor,
|
|
17
|
-
{
|
|
18
|
-
skipReadingConfig: false,
|
|
19
|
-
hooks: {
|
|
20
|
-
applyDefaultOptions: (options) => {
|
|
21
|
-
options.outputPath ??= "dist/{projectRoot}/target";
|
|
22
|
-
options.toolchain ??= "stable";
|
|
23
|
-
return options;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.cargoFormatExecutor = cargoFormatExecutor; exports.executor_default = executor_default;
|
package/dist/chunk-KILRQ3CE.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-build/executor.ts
|
|
10
|
-
async function cargoBuildExecutor(options, context) {
|
|
11
|
-
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
|
-
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
-
}
|
|
14
|
-
var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
|
|
15
|
-
"Cargo - Build",
|
|
16
|
-
cargoBuildExecutor,
|
|
17
|
-
{
|
|
18
|
-
skipReadingConfig: false,
|
|
19
|
-
hooks: {
|
|
20
|
-
applyDefaultOptions: (options) => {
|
|
21
|
-
options.outputPath ??= "dist/{projectRoot}/target";
|
|
22
|
-
options.toolchain ??= "stable";
|
|
23
|
-
return options;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.cargoBuildExecutor = cargoBuildExecutor; exports.executor_default = executor_default;
|
package/dist/chunk-O5EFCUR2.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-check/executor.ts
|
|
10
|
-
async function cargoCheckExecutor(options, context) {
|
|
11
|
-
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
|
-
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
-
}
|
|
14
|
-
var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
|
|
15
|
-
"Cargo - Check",
|
|
16
|
-
cargoCheckExecutor,
|
|
17
|
-
{
|
|
18
|
-
skipReadingConfig: false,
|
|
19
|
-
hooks: {
|
|
20
|
-
applyDefaultOptions: (options) => {
|
|
21
|
-
options.toolchain ??= "stable";
|
|
22
|
-
return options;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.cargoCheckExecutor = cargoCheckExecutor; exports.executor_default = executor_default;
|
package/dist/chunk-OZRIT35E.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeOptions,
|
|
3
|
-
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-4VWDSVQJ.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunGenerator
|
|
7
|
-
} from "./chunk-K4FLM47P.mjs";
|
|
8
|
-
import {
|
|
9
|
-
typesNodeVersion
|
|
10
|
-
} from "./chunk-QC5ON3X4.mjs";
|
|
11
|
-
import {
|
|
12
|
-
joinPaths
|
|
13
|
-
} from "./chunk-TBW5MCN6.mjs";
|
|
14
|
-
import {
|
|
15
|
-
__dirname
|
|
16
|
-
} from "./chunk-HEEYGPP2.mjs";
|
|
17
|
-
|
|
18
|
-
// src/generators/node-library/generator.ts
|
|
19
|
-
import {
|
|
20
|
-
formatFiles,
|
|
21
|
-
generateFiles,
|
|
22
|
-
names,
|
|
23
|
-
offsetFromRoot
|
|
24
|
-
} from "@nx/devkit";
|
|
25
|
-
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
26
|
-
const filesDir = joinPaths(
|
|
27
|
-
__dirname,
|
|
28
|
-
"src",
|
|
29
|
-
"generators",
|
|
30
|
-
"node-library",
|
|
31
|
-
"files"
|
|
32
|
-
);
|
|
33
|
-
const tsLibraryGeneratorOptions = {
|
|
34
|
-
platform: "node",
|
|
35
|
-
devDependencies: {
|
|
36
|
-
"@types/node": typesNodeVersion
|
|
37
|
-
},
|
|
38
|
-
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
39
|
-
...schema,
|
|
40
|
-
directory: schema.directory,
|
|
41
|
-
description: schema.description
|
|
42
|
-
};
|
|
43
|
-
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
44
|
-
const { className, name, propertyName } = names(options.name);
|
|
45
|
-
generateFiles(tree, filesDir, options.projectRoot, {
|
|
46
|
-
...schema,
|
|
47
|
-
dot: ".",
|
|
48
|
-
className,
|
|
49
|
-
name,
|
|
50
|
-
namespace: process.env.STORM_NAMESPACE ?? "storm-software",
|
|
51
|
-
description: schema.description ?? "",
|
|
52
|
-
propertyName,
|
|
53
|
-
js: !!options.js,
|
|
54
|
-
cliCommand: "nx",
|
|
55
|
-
strict: void 0,
|
|
56
|
-
tmpl: "",
|
|
57
|
-
offsetFromRoot: offsetFromRoot(options.projectRoot),
|
|
58
|
-
buildable: options.bundler && options.bundler !== "none",
|
|
59
|
-
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
60
|
-
});
|
|
61
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
62
|
-
await formatFiles(tree);
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
var generator_default = withRunGenerator(
|
|
66
|
-
"TypeScript Library Creator (NodeJs Platform)",
|
|
67
|
-
nodeLibraryGeneratorFn,
|
|
68
|
-
{
|
|
69
|
-
hooks: {
|
|
70
|
-
applyDefaultOptions: (options) => {
|
|
71
|
-
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
72
|
-
options.platform ??= "node";
|
|
73
|
-
return options;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
nodeLibraryGeneratorFn,
|
|
81
|
-
generator_default
|
|
82
|
-
};
|
package/dist/chunk-WIKTNOO2.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkEO6EDFUNjs = require('./chunk-EO6EDFUN.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
16
|
-
|
|
17
|
-
// src/executors/napi/executor.ts
|
|
18
|
-
var _jiti = require('jiti');
|
|
19
|
-
var _fileutils = require('nx/src/utils/fileutils');
|
|
20
|
-
async function napiExecutor(options, context, config) {
|
|
21
|
-
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
22
|
-
fsCache: config.skipCache ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
23
|
-
config.workspaceRoot,
|
|
24
|
-
config.directories.cache || "node_modules/.cache/storm",
|
|
25
|
-
"jiti"
|
|
26
|
-
),
|
|
27
|
-
interopDefault: true
|
|
28
|
-
});
|
|
29
|
-
const { NapiCli } = await jiti.import(
|
|
30
|
-
jiti.esmResolve("@napi-rs/cli")
|
|
31
|
-
);
|
|
32
|
-
if (!_optionalChain([context, 'access', _ => _.projectGraph, 'optionalAccess', _2 => _2.nodes, 'access', _3 => _3[_nullishCoalesce(context.projectName, () => ( ""))]])) {
|
|
33
|
-
throw new Error(
|
|
34
|
-
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
const projectRoot = _optionalChain([context, 'access', _4 => _4.projectGraph, 'optionalAccess', _5 => _5.nodes, 'access', _6 => _6[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _7 => _7.data, 'access', _8 => _8.root]);
|
|
38
|
-
const packageJson = _chunkCQDBLKPFjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
39
|
-
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
40
|
-
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
41
|
-
}
|
|
42
|
-
const napi = new NapiCli();
|
|
43
|
-
const normalizedOptions = { ...options };
|
|
44
|
-
const metadata = _chunk32KQVUCFjs.cargoMetadata.call(void 0, );
|
|
45
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _9 => _9.target_directory]) || _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
46
|
-
normalizedOptions.outputDir = options.outputPath;
|
|
47
|
-
normalizedOptions.packageJsonPath ??= packageJson;
|
|
48
|
-
if (options.cwd) {
|
|
49
|
-
normalizedOptions.cwd = _chunkCQDBLKPFjs.correctPaths.call(void 0, options.cwd);
|
|
50
|
-
} else {
|
|
51
|
-
const absoluteProjectRoot = _chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
52
|
-
_chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
|
|
53
|
-
);
|
|
54
|
-
normalizedOptions.cwd = absoluteProjectRoot;
|
|
55
|
-
if (normalizedOptions.outputDir) {
|
|
56
|
-
normalizedOptions.outputDir = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
57
|
-
normalizedOptions.cwd,
|
|
58
|
-
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
59
|
-
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
60
|
-
)
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
if (normalizedOptions.packageJsonPath) {
|
|
64
|
-
normalizedOptions.packageJsonPath = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
65
|
-
normalizedOptions.cwd,
|
|
66
|
-
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
67
|
-
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
68
|
-
)
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
if (normalizedOptions.configPath) {
|
|
72
|
-
normalizedOptions.configPath = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
73
|
-
normalizedOptions.cwd,
|
|
74
|
-
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
75
|
-
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
76
|
-
)
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
if (normalizedOptions.manifestPath) {
|
|
80
|
-
normalizedOptions.manifestPath = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
81
|
-
normalizedOptions.cwd,
|
|
82
|
-
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
83
|
-
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
84
|
-
)
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (process.env.VERCEL) {
|
|
89
|
-
return { success: true };
|
|
90
|
-
}
|
|
91
|
-
_chunkEO6EDFUNjs.writeDebug.call(void 0,
|
|
92
|
-
`Normalized Napi Options:
|
|
93
|
-
packageJsonPath: ${normalizedOptions.packageJsonPath}
|
|
94
|
-
outputDir: ${normalizedOptions.outputDir}
|
|
95
|
-
targetDir: ${normalizedOptions.targetDir}
|
|
96
|
-
manifestPath: ${normalizedOptions.manifestPath}
|
|
97
|
-
configPath: ${normalizedOptions.configPath}
|
|
98
|
-
cwd: ${normalizedOptions.cwd}`,
|
|
99
|
-
config
|
|
100
|
-
);
|
|
101
|
-
const { task } = await napi.build(normalizedOptions);
|
|
102
|
-
return { success: true, terminalOutput: await task };
|
|
103
|
-
}
|
|
104
|
-
var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
|
|
105
|
-
"Napi - Build Bindings",
|
|
106
|
-
napiExecutor,
|
|
107
|
-
{
|
|
108
|
-
skipReadingConfig: false,
|
|
109
|
-
hooks: {
|
|
110
|
-
applyDefaultOptions: (options) => {
|
|
111
|
-
options.outputPath ??= "{sourceRoot}";
|
|
112
|
-
options.toolchain ??= "stable";
|
|
113
|
-
options.dtsCache ??= true;
|
|
114
|
-
options.platform ??= true;
|
|
115
|
-
options.constEnum ??= false;
|
|
116
|
-
options.verbose ??= false;
|
|
117
|
-
options.jsBinding ??= "binding.js";
|
|
118
|
-
options.dts ??= "binding.d.ts";
|
|
119
|
-
return options;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
exports.napiExecutor = napiExecutor; exports.executor_default = executor_default;
|
package/dist/chunk-WNGTBFG5.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-QJ74HYMK.mjs";
|
|
4
|
-
import {
|
|
5
|
-
buildCargoCommand,
|
|
6
|
-
cargoCommand
|
|
7
|
-
} from "./chunk-GKLFEOKK.mjs";
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-format/executor.ts
|
|
10
|
-
async function cargoFormatExecutor(options, context) {
|
|
11
|
-
const command = buildCargoCommand("fmt", options, context);
|
|
12
|
-
return await cargoCommand(context.root, ...command);
|
|
13
|
-
}
|
|
14
|
-
var executor_default = withRunExecutor(
|
|
15
|
-
"Cargo - Format",
|
|
16
|
-
cargoFormatExecutor,
|
|
17
|
-
{
|
|
18
|
-
skipReadingConfig: false,
|
|
19
|
-
hooks: {
|
|
20
|
-
applyDefaultOptions: (options) => {
|
|
21
|
-
options.outputPath ??= "dist/{projectRoot}/target";
|
|
22
|
-
options.toolchain ??= "stable";
|
|
23
|
-
return options;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
cargoFormatExecutor,
|
|
31
|
-
executor_default
|
|
32
|
-
};
|