@storm-software/workspace-tools 1.21.18 → 1.22.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/CHANGELOG.md +17 -0
- package/generators.json +6 -1
- package/index.js +156 -128
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +2 -2
- package/src/executors/tsup/executor.js +2 -2
- package/src/executors/tsup/schema.d.ts +6 -6
- package/src/executors/tsup-neutral/executor.js +2 -2
- package/src/executors/tsup-node/executor.js +2 -2
- package/src/generators/config-schema/generator.js +2 -2
- package/src/generators/neutral-library/files/README.md +58 -0
- package/src/generators/neutral-library/files/jest.config.ts +3 -0
- package/src/generators/neutral-library/files/src/index.ts.template +10 -0
- package/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
- package/src/generators/neutral-library/schema.d.ts +6 -0
- package/src/generators/neutral-library/schema.json +82 -0
- package/src/generators/node-library/files/README.md +3 -3
- package/src/generators/node-library/generator.js +23197 -23167
- package/src/generators/node-library/schema.json +1 -1
- package/src/generators/preset/files/.env.template +2 -2
- package/src/generators/preset/files/.github/workflows/build-release.yml.template +6 -6
- package/src/generators/preset/generator.js +2 -2
- package/src/utils/index.js +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "node-library",
|
|
4
4
|
"title": "Add Node Library",
|
|
5
|
-
"description": "Create a
|
|
5
|
+
"description": "Create a new NodeJs TypeScript library package in the Storm workspace",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"name": {
|
|
@@ -13,9 +13,9 @@ SENTRY_PROPERTIES="apps/web/app"
|
|
|
13
13
|
DEFAULT_LOCALE="en_US"
|
|
14
14
|
DEFAULT_TIMEZONE="America/New_York"
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
STORM_WORKSPACE_ROOT=
|
|
17
17
|
STORM_REPO_OWNER="sullivanpj"
|
|
18
|
-
|
|
18
|
+
STORM_WORKER="stormie-bot"
|
|
19
19
|
STORM_REPO_ORG="<%= organization %>"
|
|
20
20
|
STORM_REPO_NAME="<%= name %>"
|
|
21
21
|
STORM_REPO_NAMESPACE="<%= namespace %>"
|
|
@@ -16,9 +16,9 @@ on:
|
|
|
16
16
|
env:
|
|
17
17
|
CI: true
|
|
18
18
|
NX_VERBOSE_LOGGING: true
|
|
19
|
-
|
|
19
|
+
STORM_WORKER: stormie-bot
|
|
20
20
|
STORM_REPO_URL: https://github.com/<%= organization %>/<%= name %>
|
|
21
|
-
|
|
21
|
+
STORM_WORKSPACE_ROOT: ${{ github.workspace }}
|
|
22
22
|
NX_BASE: ${{ github.base_ref }}
|
|
23
23
|
NX_HEAD: ${{ github.head_ref }}
|
|
24
24
|
GITHUB_ACTOR: ${{ github.actor }}
|
|
@@ -41,8 +41,8 @@ jobs:
|
|
|
41
41
|
|
|
42
42
|
- name: configure git
|
|
43
43
|
run: |
|
|
44
|
-
git config user.name "${{ env.
|
|
45
|
-
git config user.email "${{ env.
|
|
44
|
+
git config user.name "${{ env.STORM_WORKER }}"
|
|
45
|
+
git config user.email "${{ env.STORM_WORKER }}@users.noreply.github.com"
|
|
46
46
|
|
|
47
47
|
- name: Get appropriate base and head commits for `nx affected` commands
|
|
48
48
|
uses: nrwl/nx-set-shas@v4
|
|
@@ -85,7 +85,7 @@ jobs:
|
|
|
85
85
|
NPM_TOKEN: ${{ env.NPM_TOKEN }}
|
|
86
86
|
NPM_AUTH_TOKEN: ${{ env.NPM_TOKEN }}
|
|
87
87
|
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
STORM_WORKER: ${{ env.STORM_WORKER }}
|
|
89
|
+
STORM_WORKSPACE_ROOT: ${{ github.workspace }}
|
|
90
90
|
STORM_REPO_URL: ${{ github.repositoryUrl }}
|
|
91
91
|
TAG: ${{ inputs.tag }}
|
|
@@ -30021,7 +30021,7 @@ var getDefaultConfig = (config = {}) => {
|
|
|
30021
30021
|
};
|
|
30022
30022
|
var getWorkspaceRoot = () => {
|
|
30023
30023
|
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
30024
|
-
process.env.
|
|
30024
|
+
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
30025
30025
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
30026
30026
|
return root?.dir;
|
|
30027
30027
|
};
|
|
@@ -30212,7 +30212,7 @@ var chalk = __toESM(require_source());
|
|
|
30212
30212
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
30213
30213
|
var getWorkspaceRoot2 = () => {
|
|
30214
30214
|
const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
|
|
30215
|
-
process.env.
|
|
30215
|
+
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
30216
30216
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
30217
30217
|
return root?.dir;
|
|
30218
30218
|
};
|
package/src/utils/index.js
CHANGED
|
@@ -54,7 +54,7 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
54
54
|
var import_find_workspace_root = require("nx/src/utils/find-workspace-root.js");
|
|
55
55
|
var getWorkspaceRoot = () => {
|
|
56
56
|
const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
|
|
57
|
-
process.env.
|
|
57
|
+
process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
|
|
58
58
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
|
|
59
59
|
return root?.dir;
|
|
60
60
|
};
|