@storm-software/workspace-tools 1.52.17 → 1.53.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 +14 -0
- package/config/nx.json +13 -44
- package/index.js +16 -0
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +16 -0
- package/src/executors/design-tokens/executor.js +16 -0
- package/src/executors/tsup/executor.js +16 -0
- package/src/executors/tsup-browser/executor.js +16 -0
- package/src/executors/tsup-neutral/executor.js +16 -0
- package/src/executors/tsup-node/executor.js +16 -0
- package/src/executors/typia/executor.js +16 -0
- package/src/generators/browser-library/generator.js +16 -0
- package/src/generators/config-schema/generator.js +16 -0
- package/src/generators/neutral-library/generator.js +16 -0
- package/src/generators/node-library/generator.js +16 -0
- package/src/generators/preset/generator.js +16 -0
- package/src/utils/index.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
## 1.52.18 (2024-01-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🩹 Fixes
|
|
7
|
+
|
|
8
|
+
- **workspace-tools:** Resolved issues with build entry path ([06b5d197](https://github.com/storm-software/storm-ops/commit/06b5d197))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Patrick Sullivan
|
|
14
|
+
|
|
1
15
|
## 1.52.17 (2024-01-29)
|
|
2
16
|
|
|
3
17
|
|
package/config/nx.json
CHANGED
|
@@ -8,15 +8,9 @@
|
|
|
8
8
|
"default": {
|
|
9
9
|
"runner": "nx/tasks-runners/default",
|
|
10
10
|
"options": {
|
|
11
|
-
"cacheableOperations": [
|
|
12
|
-
"build",
|
|
13
|
-
"lint",
|
|
14
|
-
"format",
|
|
15
|
-
"test",
|
|
16
|
-
"e2e"
|
|
17
|
-
],
|
|
11
|
+
"cacheableOperations": ["build", "lint", "format", "test", "e2e"],
|
|
18
12
|
"parallel": 4,
|
|
19
|
-
"cacheDirectory": "
|
|
13
|
+
"cacheDirectory": "node_modules/.cache/nx"
|
|
20
14
|
}
|
|
21
15
|
}
|
|
22
16
|
},
|
|
@@ -55,23 +49,14 @@
|
|
|
55
49
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
56
50
|
"!{projectRoot}/tsconfig.storybook.json"
|
|
57
51
|
],
|
|
58
|
-
"sharedGlobals": [
|
|
59
|
-
"{workspaceRoot}/babel.config.json"
|
|
60
|
-
]
|
|
52
|
+
"sharedGlobals": ["{workspaceRoot}/babel.config.json"]
|
|
61
53
|
},
|
|
62
54
|
"targetDefaults": {
|
|
63
55
|
"build": {
|
|
64
56
|
"cache": true,
|
|
65
|
-
"inputs": [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
],
|
|
69
|
-
"outputs": [
|
|
70
|
-
"{options.outputPath}"
|
|
71
|
-
],
|
|
72
|
-
"dependsOn": [
|
|
73
|
-
"^build"
|
|
74
|
-
],
|
|
57
|
+
"inputs": ["default", "^production"],
|
|
58
|
+
"outputs": ["{options.outputPath}"],
|
|
59
|
+
"dependsOn": ["^build"],
|
|
75
60
|
"options": {
|
|
76
61
|
"main": "{projectRoot}/src/index.ts",
|
|
77
62
|
"outputPath": "dist/{projectRoot}",
|
|
@@ -93,29 +78,18 @@
|
|
|
93
78
|
"lint": {
|
|
94
79
|
"cache": true,
|
|
95
80
|
"executor": "nx:run-commands",
|
|
96
|
-
"outputs": [
|
|
97
|
-
"{options.outputFile}"
|
|
98
|
-
],
|
|
81
|
+
"outputs": ["{options.outputFile}"],
|
|
99
82
|
"options": {
|
|
100
83
|
"command": "npx biome lint --apply --no-errors-on-unmatched --files-ignore-unknown=true {projectRoot}",
|
|
101
84
|
"color": true
|
|
102
85
|
},
|
|
103
|
-
"inputs": [
|
|
104
|
-
"default",
|
|
105
|
-
"{workspaceRoot}/**/biome.json"
|
|
106
|
-
]
|
|
86
|
+
"inputs": ["default", "{workspaceRoot}/**/biome.json"]
|
|
107
87
|
},
|
|
108
88
|
"test": {
|
|
109
89
|
"cache": true,
|
|
110
|
-
"inputs": [
|
|
111
|
-
"default",
|
|
112
|
-
"^production",
|
|
113
|
-
"{workspaceRoot}/jest.preset.js"
|
|
114
|
-
],
|
|
90
|
+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
115
91
|
"executor": "@nx/jest:jest",
|
|
116
|
-
"outputs": [
|
|
117
|
-
"{workspaceRoot}/coverage/{projectRoot}"
|
|
118
|
-
],
|
|
92
|
+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
119
93
|
"options": {
|
|
120
94
|
"jestConfig": "{projectRoot}/jest.config.ts",
|
|
121
95
|
"passWithNoTests": true
|
|
@@ -132,13 +106,8 @@
|
|
|
132
106
|
},
|
|
133
107
|
"nx-release-publish": {
|
|
134
108
|
"cache": false,
|
|
135
|
-
"inputs": [
|
|
136
|
-
|
|
137
|
-
"^production"
|
|
138
|
-
],
|
|
139
|
-
"dependsOn": [
|
|
140
|
-
"^build"
|
|
141
|
-
],
|
|
109
|
+
"inputs": ["default", "^production"],
|
|
110
|
+
"dependsOn": ["^build"],
|
|
142
111
|
"executor": "@storm-software/workspace-tools:npm-publish",
|
|
143
112
|
"options": {
|
|
144
113
|
"packageRoot": "dist/{projectRoot}",
|
|
@@ -173,4 +142,4 @@
|
|
|
173
142
|
"analyzeSourceFiles": false
|
|
174
143
|
}
|
|
175
144
|
}
|
|
176
|
-
}
|
|
145
|
+
}
|
package/index.js
CHANGED
|
@@ -130275,6 +130275,8 @@ var StormConfigSchema = objectType({
|
|
|
130275
130275
|
externalPackagePatterns: arrayType(stringType()).default([]).describe(
|
|
130276
130276
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
130277
130277
|
),
|
|
130278
|
+
skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
130279
|
+
cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
|
|
130278
130280
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
130279
130281
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
130280
130282
|
runtimeVersion: stringType().trim().regex(
|
|
@@ -130315,6 +130317,8 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
130315
130317
|
owner: "@storm-software/development",
|
|
130316
130318
|
worker: "stormie-bot",
|
|
130317
130319
|
runtimeDirectory: "node_modules/.storm",
|
|
130320
|
+
cacheDirectory: "node_modules/.cache/storm",
|
|
130321
|
+
skipCache: false,
|
|
130318
130322
|
packageManager: "npm",
|
|
130319
130323
|
timezone: "America/New_York",
|
|
130320
130324
|
locale: "en-US",
|
|
@@ -132153,6 +132157,8 @@ var getConfigEnv = () => {
|
|
|
132153
132157
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
|
|
132154
132158
|
packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
|
|
132155
132159
|
buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
|
|
132160
|
+
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
132161
|
+
cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
|
|
132156
132162
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
132157
132163
|
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
132158
132164
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
@@ -132260,6 +132266,16 @@ var setConfigEnv = (config) => {
|
|
|
132260
132266
|
if (config.buildDirectory) {
|
|
132261
132267
|
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
|
|
132262
132268
|
}
|
|
132269
|
+
if (config.skipCache !== void 0) {
|
|
132270
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
|
|
132271
|
+
if (config.skipCache) {
|
|
132272
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
|
|
132273
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
132274
|
+
}
|
|
132275
|
+
}
|
|
132276
|
+
if (!config.skipCache && config.cacheDirectory) {
|
|
132277
|
+
process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
|
|
132278
|
+
}
|
|
132263
132279
|
if (config.runtimeVersion) {
|
|
132264
132280
|
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
132265
132281
|
}
|