@storm-software/workspace-tools 1.296.114 → 1.297.0
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/dist/{chunk-RU4TNHFG.js → chunk-3AHXYCKA.js} +1 -2
- package/dist/chunk-52ZDVDIY.mjs +84 -0
- package/dist/chunk-G4DPDEL3.mjs +175 -0
- package/dist/{chunk-IK7V7SOR.js → chunk-HKZ7DBR7.js} +13 -4
- package/dist/chunk-KCQIASWP.js +84 -0
- package/dist/{chunk-TNQCJJDO.mjs → chunk-N55FJ7J3.mjs} +12 -3
- package/dist/{chunk-K6UOPTIZ.mjs → chunk-QQ64FCAP.mjs} +1 -2
- package/dist/chunk-VXOPWQTJ.js +175 -0
- package/dist/executors.d.mts +2 -1
- package/dist/executors.d.ts +2 -1
- package/dist/executors.js +10 -12
- package/dist/executors.mjs +10 -12
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +14 -14
- package/dist/index.mjs +16 -16
- package/dist/{executor-BF7_LjrR.d.mts → schema.d-Muf2toJ0.d.mts} +1 -8
- package/dist/{executor-BF7_LjrR.d.ts → schema.d-Muf2toJ0.d.ts} +1 -8
- package/dist/schema.d-vPuQzus3.d.mts +41 -0
- package/dist/schema.d-vPuQzus3.d.ts +41 -0
- package/dist/src/executors/cargo-publish/executor.js +2 -2
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/command-publish/executor.d.mts +8 -0
- package/dist/src/executors/command-publish/executor.d.ts +8 -0
- package/dist/src/executors/command-publish/executor.js +7 -0
- package/dist/src/executors/command-publish/executor.mjs +8 -0
- package/dist/src/executors/command-publish/schema.d.ts +41 -0
- package/dist/src/executors/command-publish/schema.json +52 -0
- package/dist/src/executors/command-publish/untyped.d.mts +5 -0
- package/dist/src/executors/command-publish/untyped.d.ts +5 -0
- package/dist/src/executors/command-publish/untyped.js +46 -0
- package/dist/src/executors/command-publish/untyped.mjs +48 -0
- package/dist/src/executors/npm-publish/executor.d.mts +8 -2
- package/dist/src/executors/npm-publish/executor.d.ts +8 -2
- package/dist/src/executors/npm-publish/executor.js +3 -5
- package/dist/src/executors/npm-publish/executor.mjs +2 -4
- package/dist/src/utils/index.d.mts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +4 -2
- package/dist/src/utils/index.mjs +4 -2
- package/dist/src/utils/package-helpers.d.mts +9 -1
- package/dist/src/utils/package-helpers.d.ts +9 -1
- package/dist/src/utils/package-helpers.js +4 -2
- package/dist/src/utils/package-helpers.mjs +5 -3
- package/docs/api/executors/command-publish/schema.md +43 -0
- package/executors.json +5 -0
- package/package.json +12 -12
- package/dist/chunk-KD4DD3ZC.mjs +0 -94
- package/dist/chunk-R6QU3B53.js +0 -94
- /package/dist/{chunk-GHQJKIMQ.mjs → chunk-OYOYESMB.mjs} +0 -0
- /package/dist/{chunk-P6HSE7LH.js → chunk-TEX5JJNH.js} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"title": "Command Publish Executor",
|
|
4
|
+
"description": "A type definition for a Command Publish executor schema that runs a user-provided publish command",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"required": [
|
|
8
|
+
"commands"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": [
|
|
13
|
+
"command"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"command": {
|
|
19
|
+
"title": "Command",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The shell command to run to publish the package",
|
|
22
|
+
"id": "#command"
|
|
23
|
+
},
|
|
24
|
+
"commands": {
|
|
25
|
+
"title": "Commands",
|
|
26
|
+
"type": "array",
|
|
27
|
+
"description": "Shell commands to run to publish the package",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"id": "#commands"
|
|
32
|
+
},
|
|
33
|
+
"cwd": {
|
|
34
|
+
"title": "Working Directory",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": "path",
|
|
37
|
+
"description": "The working directory to run the publish command in. Defaults to the project root.",
|
|
38
|
+
"id": "#cwd"
|
|
39
|
+
},
|
|
40
|
+
"dryRun": {
|
|
41
|
+
"title": "Dry Run",
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "When true, log the commands that would be run without executing them",
|
|
44
|
+
"id": "#dryRun",
|
|
45
|
+
"default": false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"type": "object",
|
|
49
|
+
"default": {
|
|
50
|
+
"dryRun": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/executors/command-publish/untyped.ts
|
|
2
|
+
var _untyped = require('untyped');
|
|
3
|
+
var untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4
|
+
$schema: {
|
|
5
|
+
id: "CommandPublishExecutorSchema",
|
|
6
|
+
title: "Command Publish Executor",
|
|
7
|
+
description: "A type definition for a Command Publish executor schema that runs a user-provided publish command",
|
|
8
|
+
oneOf: [{ required: ["commands"] }, { required: ["command"] }]
|
|
9
|
+
},
|
|
10
|
+
command: {
|
|
11
|
+
$schema: {
|
|
12
|
+
title: "Command",
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "The shell command to run to publish the package"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
commands: {
|
|
18
|
+
$schema: {
|
|
19
|
+
title: "Commands",
|
|
20
|
+
type: "array",
|
|
21
|
+
description: "Shell commands to run to publish the package",
|
|
22
|
+
items: {
|
|
23
|
+
type: "string"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
cwd: {
|
|
28
|
+
$schema: {
|
|
29
|
+
title: "Working Directory",
|
|
30
|
+
type: "string",
|
|
31
|
+
format: "path",
|
|
32
|
+
description: "The working directory to run the publish command in. Defaults to the project root."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
dryRun: {
|
|
36
|
+
$schema: {
|
|
37
|
+
title: "Dry Run",
|
|
38
|
+
type: "boolean",
|
|
39
|
+
description: "When true, log the commands that would be run without executing them"
|
|
40
|
+
},
|
|
41
|
+
$default: false
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.default = untyped_default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "../../../chunk-63OCFWY4.mjs";
|
|
2
|
+
|
|
3
|
+
// src/executors/command-publish/untyped.ts
|
|
4
|
+
import { defineUntypedSchema } from "untyped";
|
|
5
|
+
var untyped_default = defineUntypedSchema({
|
|
6
|
+
$schema: {
|
|
7
|
+
id: "CommandPublishExecutorSchema",
|
|
8
|
+
title: "Command Publish Executor",
|
|
9
|
+
description: "A type definition for a Command Publish executor schema that runs a user-provided publish command",
|
|
10
|
+
oneOf: [{ required: ["commands"] }, { required: ["command"] }]
|
|
11
|
+
},
|
|
12
|
+
command: {
|
|
13
|
+
$schema: {
|
|
14
|
+
title: "Command",
|
|
15
|
+
type: "string",
|
|
16
|
+
description: "The shell command to run to publish the package"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
commands: {
|
|
20
|
+
$schema: {
|
|
21
|
+
title: "Commands",
|
|
22
|
+
type: "array",
|
|
23
|
+
description: "Shell commands to run to publish the package",
|
|
24
|
+
items: {
|
|
25
|
+
type: "string"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
cwd: {
|
|
30
|
+
$schema: {
|
|
31
|
+
title: "Working Directory",
|
|
32
|
+
type: "string",
|
|
33
|
+
format: "path",
|
|
34
|
+
description: "The working directory to run the publish command in. Defaults to the project root."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
dryRun: {
|
|
38
|
+
$schema: {
|
|
39
|
+
title: "Dry Run",
|
|
40
|
+
type: "boolean",
|
|
41
|
+
description: "When true, log the commands that would be run without executing them"
|
|
42
|
+
},
|
|
43
|
+
$default: false
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
untyped_default as default
|
|
48
|
+
};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import '@nx/devkit';
|
|
2
|
-
|
|
1
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
import { N as NpmPublishExecutorSchema } from '../../../schema.d-Muf2toJ0.mjs';
|
|
3
|
+
|
|
4
|
+
declare function npmPublishExecutorFn(options: NpmPublishExecutorSchema, context: ExecutorContext): Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
|
|
8
|
+
export { npmPublishExecutorFn as default };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import '@nx/devkit';
|
|
2
|
-
|
|
1
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
import { N as NpmPublishExecutorSchema } from '../../../schema.d-Muf2toJ0.js';
|
|
3
|
+
|
|
4
|
+
declare function npmPublishExecutorFn(options: NpmPublishExecutorSchema, context: ExecutorContext): Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
|
|
8
|
+
export { npmPublishExecutorFn as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var _chunkIK7V7SORjs = require('../../../chunk-IK7V7SOR.js');
|
|
3
|
+
var _chunkHKZ7DBR7js = require('../../../chunk-HKZ7DBR7.js');
|
|
5
4
|
require('../../../chunk-3MXZ2RJF.js');
|
|
6
5
|
require('../../../chunk-P5OQBBN3.js');
|
|
7
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-VXOPWQTJ.js');
|
|
8
7
|
require('../../../chunk-N2365RCI.js');
|
|
9
8
|
require('../../../chunk-TAP26ZJQ.js');
|
|
10
9
|
require('../../../chunk-IMY2BU43.js');
|
|
@@ -13,5 +12,4 @@ require('../../../chunk-GUI4USIO.js');
|
|
|
13
12
|
require('../../../chunk-CQDBLKPF.js');
|
|
14
13
|
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
exports.LARGE_BUFFER = _chunkIK7V7SORjs.LARGE_BUFFER; exports.default = _chunkIK7V7SORjs.npmPublishExecutorFn;
|
|
15
|
+
exports.default = _chunkHKZ7DBR7js.npmPublishExecutorFn;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
LARGE_BUFFER,
|
|
3
2
|
npmPublishExecutorFn
|
|
4
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-N55FJ7J3.mjs";
|
|
5
4
|
import "../../../chunk-EXRSULNO.mjs";
|
|
6
5
|
import "../../../chunk-SHJC4UVH.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-G4DPDEL3.mjs";
|
|
8
7
|
import "../../../chunk-UA33NH5O.mjs";
|
|
9
8
|
import "../../../chunk-2GQSCZ3J.mjs";
|
|
10
9
|
import "../../../chunk-I4KVL3GR.mjs";
|
|
@@ -13,6 +12,5 @@ import "../../../chunk-JUJWJXED.mjs";
|
|
|
13
12
|
import "../../../chunk-TBW5MCN6.mjs";
|
|
14
13
|
import "../../../chunk-63OCFWY4.mjs";
|
|
15
14
|
export {
|
|
16
|
-
LARGE_BUFFER,
|
|
17
15
|
npmPublishExecutorFn as default
|
|
18
16
|
};
|
|
@@ -5,7 +5,7 @@ export { getProjectConfiguration, getProjectConfigurations } from './get-project
|
|
|
5
5
|
export { GitHubTools, getGitHubTools } from './github.mjs';
|
|
6
6
|
export { BUN_LOCK_FILE, BUN_LOCK_PATH, LOCK_FILES, LOCK_FILE_BY_PACKAGE_MANAGER, NPM_LOCK_FILE, NPM_LOCK_PATH, OTHER_LOCK_FILES, PNPM_LOCK_FILE, PNPM_LOCK_PATH, YARN_LOCK_FILE, YARN_LOCK_PATH, getLockFileDependencies, getLockFileName, getLockFileNodes, getOtherLockFileNames, lockFileExists } from './lock-file.mjs';
|
|
7
7
|
export { NAMED_INPUTS, RELEASE, withNamedInputs } from './nx-json.mjs';
|
|
8
|
-
export { PackageInfo, PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo } from './package-helpers.mjs';
|
|
8
|
+
export { PackageInfo, PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo, stripPrivateWorkspaceDeps } from './package-helpers.mjs';
|
|
9
9
|
export { PackageManagerCommands, getInstallCommand, getWorkspacePackageManager, getWorkspacePackageManagerCommand } from './package-manager.mjs';
|
|
10
10
|
export { getProjectConfigFromProjectJsonPath, getProjectConfigFromProjectRoot, getProjectPlatform, getProjectRoot, getRoot } from './plugin-helpers.mjs';
|
|
11
11
|
export { addPluginProjectTag, addProjectTag, setDefaultProjectTags } from './project-tags.mjs';
|
|
@@ -5,7 +5,7 @@ export { getProjectConfiguration, getProjectConfigurations } from './get-project
|
|
|
5
5
|
export { GitHubTools, getGitHubTools } from './github.js';
|
|
6
6
|
export { BUN_LOCK_FILE, BUN_LOCK_PATH, LOCK_FILES, LOCK_FILE_BY_PACKAGE_MANAGER, NPM_LOCK_FILE, NPM_LOCK_PATH, OTHER_LOCK_FILES, PNPM_LOCK_FILE, PNPM_LOCK_PATH, YARN_LOCK_FILE, YARN_LOCK_PATH, getLockFileDependencies, getLockFileName, getLockFileNodes, getOtherLockFileNames, lockFileExists } from './lock-file.js';
|
|
7
7
|
export { NAMED_INPUTS, RELEASE, withNamedInputs } from './nx-json.js';
|
|
8
|
-
export { PackageInfo, PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo } from './package-helpers.js';
|
|
8
|
+
export { PackageInfo, PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo, stripPrivateWorkspaceDeps } from './package-helpers.js';
|
|
9
9
|
export { PackageManagerCommands, getInstallCommand, getWorkspacePackageManager, getWorkspacePackageManagerCommand } from './package-manager.js';
|
|
10
10
|
export { getProjectConfigFromProjectJsonPath, getProjectConfigFromProjectRoot, getProjectPlatform, getProjectRoot, getRoot } from './plugin-helpers.js';
|
|
11
11
|
export { addPluginProjectTag, addProjectTag, setDefaultProjectTags } from './project-tags.js';
|
package/dist/src/utils/index.js
CHANGED
|
@@ -47,7 +47,8 @@ var _chunkP5OQBBN3js = require('../../chunk-P5OQBBN3.js');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
var _chunkVXOPWQTJjs = require('../../chunk-VXOPWQTJ.js');
|
|
51
52
|
require('../../chunk-N2365RCI.js');
|
|
52
53
|
|
|
53
54
|
|
|
@@ -181,4 +182,5 @@ require('../../chunk-CQDBLKPF.js');
|
|
|
181
182
|
|
|
182
183
|
|
|
183
184
|
|
|
184
|
-
|
|
185
|
+
|
|
186
|
+
exports.BUN_LOCK_FILE = _chunkHN5UXNLMjs.BUN_LOCK_FILE; exports.BUN_LOCK_PATH = _chunkHN5UXNLMjs.BUN_LOCK_PATH; exports.INVALID_CARGO_ARGS = _chunkHYK7OVZ3js.INVALID_CARGO_ARGS; exports.LOCK_FILES = _chunkHN5UXNLMjs.LOCK_FILES; exports.LOCK_FILE_BY_PACKAGE_MANAGER = _chunkHN5UXNLMjs.LOCK_FILE_BY_PACKAGE_MANAGER; exports.NAMED_INPUTS = _chunk5KAJDSTQjs.NAMED_INPUTS; exports.NPM_LOCK_FILE = _chunkHN5UXNLMjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkHN5UXNLMjs.NPM_LOCK_PATH; exports.OTHER_LOCK_FILES = _chunkHN5UXNLMjs.OTHER_LOCK_FILES; exports.PNPM_LOCK_FILE = _chunkHN5UXNLMjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkHN5UXNLMjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunkVXOPWQTJjs.PackageManagerTypes; exports.ProjectTagConstants = _chunkTAP26ZJQjs.ProjectTagConstants; exports.RELEASE = _chunk5KAJDSTQjs.RELEASE; exports.YARN_LOCK_FILE = _chunkHN5UXNLMjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkHN5UXNLMjs.YARN_LOCK_PATH; exports.addPackageJsonGitHead = _chunkVXOPWQTJjs.addPackageJsonGitHead; exports.addPluginProjectTag = _chunkTAP26ZJQjs.addPluginProjectTag; exports.addProjectTag = _chunkTAP26ZJQjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkDIIMX7QFjs.applyWorkspaceExecutorTokens; exports.buildCargoCommand = _chunkHYK7OVZ3js.buildCargoCommand; exports.bunVersion = _chunk3G7PNDZ5js.bunVersion; exports.cargoCommand = _chunkHYK7OVZ3js.cargoCommand; exports.cargoCommandSync = _chunkHYK7OVZ3js.cargoCommandSync; exports.cargoMetadata = _chunkHYK7OVZ3js.cargoMetadata; exports.cargoRunCommand = _chunkHYK7OVZ3js.cargoRunCommand; exports.childProcess = _chunkHYK7OVZ3js.childProcess; exports.createCliOptions = _chunkQVYCDINGjs.createCliOptions; exports.eslintVersion = _chunk3G7PNDZ5js.eslintVersion; exports.formatProjectTag = _chunkTAP26ZJQjs.formatProjectTag; exports.getGitHubTools = _chunkP5OQBBN3js.getGitHubTools; exports.getInstallCommand = _chunk3MXZ2RJFjs.getInstallCommand; exports.getLockFileDependencies = _chunkHN5UXNLMjs.getLockFileDependencies; exports.getLockFileName = _chunkHN5UXNLMjs.getLockFileName; exports.getLockFileNodes = _chunkHN5UXNLMjs.getLockFileNodes; exports.getOtherLockFileNames = _chunkHN5UXNLMjs.getOtherLockFileNames; exports.getPackageInfo = _chunkVXOPWQTJjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkBAPFD3TOjs.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkBAPFD3TOjs.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunkUAK3EVR2js.getProjectConfiguration; exports.getProjectConfigurations = _chunkUAK3EVR2js.getProjectConfigurations; exports.getProjectPlatform = _chunkBAPFD3TOjs.getProjectPlatform; exports.getProjectRoot = _chunkBAPFD3TOjs.getProjectRoot; exports.getProjectTag = _chunkTAP26ZJQjs.getProjectTag; exports.getRoot = _chunkBAPFD3TOjs.getRoot; exports.getTypiaTransform = _chunk6EMYX25Vjs.getTypiaTransform; exports.getWorkspacePackageManager = _chunk3MXZ2RJFjs.getWorkspacePackageManager; exports.getWorkspacePackageManagerCommand = _chunk3MXZ2RJFjs.getWorkspacePackageManagerCommand; exports.hasProjectTag = _chunkTAP26ZJQjs.hasProjectTag; exports.isEqualProjectTag = _chunkTAP26ZJQjs.isEqualProjectTag; exports.isExternal = _chunkHYK7OVZ3js.isExternal; exports.lintStagedVersion = _chunk3G7PNDZ5js.lintStagedVersion; exports.lockFileExists = _chunkHN5UXNLMjs.lockFileExists; exports.nodeVersion = _chunk3G7PNDZ5js.nodeVersion; exports.npmVersion = _chunk3G7PNDZ5js.npmVersion; exports.nxVersion = _chunk3G7PNDZ5js.nxVersion; exports.packageManagerVersions = _chunk3G7PNDZ5js.packageManagerVersions; exports.pnpmVersion = _chunk3G7PNDZ5js.pnpmVersion; exports.prettierPackageJsonVersion = _chunk3G7PNDZ5js.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunk3G7PNDZ5js.prettierPrismaVersion; exports.prettierVersion = _chunk3G7PNDZ5js.prettierVersion; exports.runProcess = _chunkHYK7OVZ3js.runProcess; exports.semanticReleaseVersion = _chunk3G7PNDZ5js.semanticReleaseVersion; exports.setDefaultProjectTags = _chunkTAP26ZJQjs.setDefaultProjectTags; exports.stripPrivateWorkspaceDeps = _chunkVXOPWQTJjs.stripPrivateWorkspaceDeps; exports.swcCliVersion = _chunk3G7PNDZ5js.swcCliVersion; exports.swcCoreVersion = _chunk3G7PNDZ5js.swcCoreVersion; exports.swcHelpersVersion = _chunk3G7PNDZ5js.swcHelpersVersion; exports.swcNodeVersion = _chunk3G7PNDZ5js.swcNodeVersion; exports.tsLibVersion = _chunk3G7PNDZ5js.tsLibVersion; exports.tsupVersion = _chunk3G7PNDZ5js.tsupVersion; exports.typesNodeVersion = _chunk3G7PNDZ5js.typesNodeVersion; exports.typescriptVersion = _chunk3G7PNDZ5js.typescriptVersion; exports.verdaccioVersion = _chunk3G7PNDZ5js.verdaccioVersion; exports.withNamedInputs = _chunk5KAJDSTQjs.withNamedInputs; exports.yarnVersion = _chunk3G7PNDZ5js.yarnVersion;
|
package/dist/src/utils/index.mjs
CHANGED
|
@@ -46,8 +46,9 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
PackageManagerTypes,
|
|
48
48
|
addPackageJsonGitHead,
|
|
49
|
-
getPackageInfo
|
|
50
|
-
|
|
49
|
+
getPackageInfo,
|
|
50
|
+
stripPrivateWorkspaceDeps
|
|
51
|
+
} from "../../chunk-G4DPDEL3.mjs";
|
|
51
52
|
import "../../chunk-UA33NH5O.mjs";
|
|
52
53
|
import {
|
|
53
54
|
BUN_LOCK_FILE,
|
|
@@ -171,6 +172,7 @@ export {
|
|
|
171
172
|
runProcess,
|
|
172
173
|
semanticReleaseVersion,
|
|
173
174
|
setDefaultProjectTags,
|
|
175
|
+
stripPrivateWorkspaceDeps,
|
|
174
176
|
swcCliVersion,
|
|
175
177
|
swcCoreVersion,
|
|
176
178
|
swcHelpersVersion,
|
|
@@ -12,6 +12,14 @@ type PackageInfo = {
|
|
|
12
12
|
type: PackageManagerType;
|
|
13
13
|
};
|
|
14
14
|
declare const getPackageInfo: (project: ProjectConfiguration) => null | PackageInfo;
|
|
15
|
+
/**
|
|
16
|
+
* Remove private workspace package references from a package.json file before publish.
|
|
17
|
+
*
|
|
18
|
+
* @param packageRoot - The root directory of the package to update.
|
|
19
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
20
|
+
* @returns A list of removed dependency keys in `field.name` form.
|
|
21
|
+
*/
|
|
22
|
+
declare function stripPrivateWorkspaceDeps(packageRoot: string, workspaceRoot: string): Promise<string[]>;
|
|
15
23
|
/**
|
|
16
24
|
* Adds the current git HEAD commit hash to the package.json file at the specified path.
|
|
17
25
|
*
|
|
@@ -21,4 +29,4 @@ declare const getPackageInfo: (project: ProjectConfiguration) => null | PackageI
|
|
|
21
29
|
*/
|
|
22
30
|
declare function addPackageJsonGitHead(packageRoot: string): Promise<void>;
|
|
23
31
|
|
|
24
|
-
export { type PackageInfo, type PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo };
|
|
32
|
+
export { type PackageInfo, type PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo, stripPrivateWorkspaceDeps };
|
|
@@ -12,6 +12,14 @@ type PackageInfo = {
|
|
|
12
12
|
type: PackageManagerType;
|
|
13
13
|
};
|
|
14
14
|
declare const getPackageInfo: (project: ProjectConfiguration) => null | PackageInfo;
|
|
15
|
+
/**
|
|
16
|
+
* Remove private workspace package references from a package.json file before publish.
|
|
17
|
+
*
|
|
18
|
+
* @param packageRoot - The root directory of the package to update.
|
|
19
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
20
|
+
* @returns A list of removed dependency keys in `field.name` form.
|
|
21
|
+
*/
|
|
22
|
+
declare function stripPrivateWorkspaceDeps(packageRoot: string, workspaceRoot: string): Promise<string[]>;
|
|
15
23
|
/**
|
|
16
24
|
* Adds the current git HEAD commit hash to the package.json file at the specified path.
|
|
17
25
|
*
|
|
@@ -21,4 +29,4 @@ declare const getPackageInfo: (project: ProjectConfiguration) => null | PackageI
|
|
|
21
29
|
*/
|
|
22
30
|
declare function addPackageJsonGitHead(packageRoot: string): Promise<void>;
|
|
23
31
|
|
|
24
|
-
export { type PackageInfo, type PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo };
|
|
32
|
+
export { type PackageInfo, type PackageManagerType, PackageManagerTypes, addPackageJsonGitHead, getPackageInfo, stripPrivateWorkspaceDeps };
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
var _chunkVXOPWQTJjs = require('../../chunk-VXOPWQTJ.js');
|
|
6
7
|
require('../../chunk-N2365RCI.js');
|
|
7
8
|
require('../../chunk-TAP26ZJQ.js');
|
|
8
9
|
require('../../chunk-CLKU7UMG.js');
|
|
@@ -11,4 +12,5 @@ require('../../chunk-CQDBLKPF.js');
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
exports.PackageManagerTypes = _chunkVXOPWQTJjs.PackageManagerTypes; exports.addPackageJsonGitHead = _chunkVXOPWQTJjs.addPackageJsonGitHead; exports.getPackageInfo = _chunkVXOPWQTJjs.getPackageInfo; exports.stripPrivateWorkspaceDeps = _chunkVXOPWQTJjs.stripPrivateWorkspaceDeps;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PackageManagerTypes,
|
|
3
3
|
addPackageJsonGitHead,
|
|
4
|
-
getPackageInfo
|
|
5
|
-
|
|
4
|
+
getPackageInfo,
|
|
5
|
+
stripPrivateWorkspaceDeps
|
|
6
|
+
} from "../../chunk-G4DPDEL3.mjs";
|
|
6
7
|
import "../../chunk-UA33NH5O.mjs";
|
|
7
8
|
import "../../chunk-2GQSCZ3J.mjs";
|
|
8
9
|
import "../../chunk-45CW7OJB.mjs";
|
|
@@ -11,5 +12,6 @@ import "../../chunk-63OCFWY4.mjs";
|
|
|
11
12
|
export {
|
|
12
13
|
PackageManagerTypes,
|
|
13
14
|
addPackageJsonGitHead,
|
|
14
|
-
getPackageInfo
|
|
15
|
+
getPackageInfo,
|
|
16
|
+
stripPrivateWorkspaceDeps
|
|
15
17
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
<!-- Generated by @storm-software/untyped -->
|
|
3
|
+
<!-- Do not edit this file directly -->
|
|
4
|
+
|
|
5
|
+
# Command Publish Executor
|
|
6
|
+
|
|
7
|
+
## `command`
|
|
8
|
+
- **Type**: `string`
|
|
9
|
+
|
|
10
|
+
> Command
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
The shell command to run to publish the package
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## `commands`
|
|
17
|
+
- **Type**: `array`
|
|
18
|
+
|
|
19
|
+
> Commands
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Shell commands to run to publish the package
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## `cwd`
|
|
26
|
+
- **Type**: `string`
|
|
27
|
+
|
|
28
|
+
> Working Directory
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
The working directory to run the publish command in. Defaults to the project root.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## `dryRun`
|
|
35
|
+
- **Type**: `boolean`
|
|
36
|
+
- **Default**: `false`
|
|
37
|
+
|
|
38
|
+
> Dry Run
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
When true, log the commands that would be run without executing them
|
|
42
|
+
|
|
43
|
+
|
package/executors.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"schema": "./dist/src/executors/cargo-publish/schema.json",
|
|
36
36
|
"description": "Publish a Rust crate to the crates.io registry"
|
|
37
37
|
},
|
|
38
|
+
"command-publish": {
|
|
39
|
+
"implementation": "./dist/src/executors/command-publish/executor",
|
|
40
|
+
"schema": "./dist/src/executors/command-publish/schema.json",
|
|
41
|
+
"description": "Publish a package by running a user-provided shell command"
|
|
42
|
+
},
|
|
38
43
|
"cargo-build": {
|
|
39
44
|
"implementation": "./dist/src/executors/cargo-build/executor",
|
|
40
45
|
"schema": "./dist/src/executors/cargo-build/schema.json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.297.0",
|
|
4
4
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"monorepo",
|
|
@@ -238,11 +238,11 @@
|
|
|
238
238
|
"@size-limit/esbuild": "^11.2.0",
|
|
239
239
|
"@size-limit/esbuild-why": "^11.2.0",
|
|
240
240
|
"@size-limit/file": "^11.2.0",
|
|
241
|
-
"@storm-software/config": "^1.138.
|
|
242
|
-
"@storm-software/config-tools": "^1.190.
|
|
243
|
-
"@storm-software/npm-tools": "0.6.
|
|
244
|
-
"@storm-software/prettier": "^0.59.
|
|
245
|
-
"@storm-software/tsdown": "^0.45.
|
|
241
|
+
"@storm-software/config": "^1.138.67",
|
|
242
|
+
"@storm-software/config-tools": "^1.190.131",
|
|
243
|
+
"@storm-software/npm-tools": "^0.6.251",
|
|
244
|
+
"@storm-software/prettier": "^0.59.184",
|
|
245
|
+
"@storm-software/tsdown": "^0.45.292",
|
|
246
246
|
"defu": "^6.1.7",
|
|
247
247
|
"esbuild": "^0.25.12",
|
|
248
248
|
"fs-extra": "^11.4.0",
|
|
@@ -261,11 +261,11 @@
|
|
|
261
261
|
},
|
|
262
262
|
"devDependencies": {
|
|
263
263
|
"@napi-rs/cli": "^3.8.2",
|
|
264
|
-
"@storm-software/bun-tools": "0.0.
|
|
265
|
-
"@storm-software/esbuild": "^0.53.
|
|
266
|
-
"@storm-software/package-constants": "^0.1.
|
|
267
|
-
"@storm-software/pnpm-tools": "0.7.
|
|
268
|
-
"@storm-software/unbuild": "^0.57.
|
|
264
|
+
"@storm-software/bun-tools": "^0.0.44",
|
|
265
|
+
"@storm-software/esbuild": "^0.53.292",
|
|
266
|
+
"@storm-software/package-constants": "^0.1.143",
|
|
267
|
+
"@storm-software/pnpm-tools": "^0.7.145",
|
|
268
|
+
"@storm-software/unbuild": "^0.57.292",
|
|
269
269
|
"@types/micromatch": "^4.0.10",
|
|
270
270
|
"@types/node": "^25.9.5",
|
|
271
271
|
"@types/semver": "^7.8.0",
|
|
@@ -294,5 +294,5 @@
|
|
|
294
294
|
"publishConfig": { "access": "public" },
|
|
295
295
|
"executors": "./executors.json",
|
|
296
296
|
"generators": "./generators.json",
|
|
297
|
-
"gitHead": "
|
|
297
|
+
"gitHead": "1bb5e5064631770d695317f7f5445e1622e9571a"
|
|
298
298
|
}
|
package/dist/chunk-KD4DD3ZC.mjs
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseCargoToml
|
|
3
|
-
} from "./chunk-UA33NH5O.mjs";
|
|
4
|
-
import {
|
|
5
|
-
ProjectTagConstants,
|
|
6
|
-
isEqualProjectTag
|
|
7
|
-
} from "./chunk-2GQSCZ3J.mjs";
|
|
8
|
-
import {
|
|
9
|
-
joinPaths
|
|
10
|
-
} from "./chunk-TBW5MCN6.mjs";
|
|
11
|
-
|
|
12
|
-
// src/utils/package-helpers.ts
|
|
13
|
-
import {
|
|
14
|
-
joinPathFragments,
|
|
15
|
-
readJsonFile
|
|
16
|
-
} from "@nx/devkit";
|
|
17
|
-
import { execFileSync } from "child_process";
|
|
18
|
-
import { existsSync } from "node:fs";
|
|
19
|
-
import { readFile, writeFile } from "node:fs/promises";
|
|
20
|
-
import { dirname, resolve } from "path";
|
|
21
|
-
import { format } from "prettier";
|
|
22
|
-
import prettierPlugin from "prettier-plugin-packagejson";
|
|
23
|
-
var PackageManagerTypes = {
|
|
24
|
-
PackageJson: "package.json",
|
|
25
|
-
CargoToml: "Cargo.toml"
|
|
26
|
-
};
|
|
27
|
-
var getPackageInfo = (project) => {
|
|
28
|
-
if (isEqualProjectTag(
|
|
29
|
-
project,
|
|
30
|
-
ProjectTagConstants.Language.TAG_ID,
|
|
31
|
-
ProjectTagConstants.Language.RUST
|
|
32
|
-
) && existsSync(joinPathFragments(project.root, "Cargo.toml"))) {
|
|
33
|
-
return {
|
|
34
|
-
type: "Cargo.toml",
|
|
35
|
-
content: parseCargoToml(joinPathFragments(project.root, "Cargo.toml"))
|
|
36
|
-
};
|
|
37
|
-
} else if (isEqualProjectTag(
|
|
38
|
-
project,
|
|
39
|
-
ProjectTagConstants.Language.TAG_ID,
|
|
40
|
-
ProjectTagConstants.Language.TYPESCRIPT
|
|
41
|
-
) && existsSync(joinPathFragments(project.root, "package.json"))) {
|
|
42
|
-
return {
|
|
43
|
-
type: "package.json",
|
|
44
|
-
content: readJsonFile(
|
|
45
|
-
joinPathFragments(project.root, "package.json")
|
|
46
|
-
)
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
};
|
|
51
|
-
async function addPackageJsonGitHead(packageRoot) {
|
|
52
|
-
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
53
|
-
if (!packageJsonPath) {
|
|
54
|
-
throw new Error(
|
|
55
|
-
"No file path provided. Please provide a valid path to the package.json file."
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
const packageJsonValue = JSON.parse(await readFile(packageJsonPath, "utf8"));
|
|
59
|
-
if (!packageJsonValue || typeof packageJsonValue !== "object") {
|
|
60
|
-
throw new Error(
|
|
61
|
-
`Invalid package.json file at ${packageJsonPath}. Please ensure it is a valid JSON file.`
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
const gitHead = execFileSync("git", ["rev-parse", "HEAD"], {
|
|
65
|
-
cwd: dirname(resolve(packageJsonPath)),
|
|
66
|
-
encoding: "utf8"
|
|
67
|
-
}).trim();
|
|
68
|
-
packageJsonValue.gitHead = gitHead;
|
|
69
|
-
return writeFile(
|
|
70
|
-
packageJsonPath,
|
|
71
|
-
await format(JSON.stringify(packageJsonValue), {
|
|
72
|
-
parser: "json",
|
|
73
|
-
proseWrap: "preserve",
|
|
74
|
-
trailingComma: "none",
|
|
75
|
-
tabWidth: 2,
|
|
76
|
-
semi: true,
|
|
77
|
-
singleQuote: false,
|
|
78
|
-
quoteProps: "as-needed",
|
|
79
|
-
insertPragma: false,
|
|
80
|
-
bracketSameLine: true,
|
|
81
|
-
printWidth: 80,
|
|
82
|
-
bracketSpacing: true,
|
|
83
|
-
arrowParens: "avoid",
|
|
84
|
-
endOfLine: "lf",
|
|
85
|
-
plugins: [prettierPlugin]
|
|
86
|
-
})
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
PackageManagerTypes,
|
|
92
|
-
getPackageInfo,
|
|
93
|
-
addPackageJsonGitHead
|
|
94
|
-
};
|