@storm-software/workspace-tools 1.52.16 → 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 CHANGED
@@ -1,5 +1,31 @@
1
1
 
2
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
+
15
+ ## 1.52.17 (2024-01-29)
16
+
17
+
18
+ ### 🩹 Fixes
19
+
20
+ - **workspace-tools:** Update the entry paths passed to tsup ([36a1e839](https://github.com/storm-software/storm-ops/commit/36a1e839))
21
+
22
+
23
+ ### ❤️ Thank You
24
+
25
+ - Patrick Sullivan
26
+
27
+
28
+
3
29
  ## 1.52.15 (2024-01-29)
4
30
 
5
31
 
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": ".nx/cache"
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
- "default",
67
- "^production"
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
- "default",
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
@@ -29028,8 +29028,8 @@ var require_select = __commonJS({
29028
29028
  separator() {
29029
29029
  if (this.options.separator)
29030
29030
  return super.separator();
29031
- let sep3 = this.styles.muted(this.symbols.ellipsis);
29032
- return this.state.submitted ? super.separator() : sep3;
29031
+ let sep4 = this.styles.muted(this.symbols.ellipsis);
29032
+ return this.state.submitted ? super.separator() : sep4;
29033
29033
  }
29034
29034
  pointer(choice, i) {
29035
29035
  return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
@@ -29393,8 +29393,8 @@ var require_form = __commonJS({
29393
29393
  return choice.input ? "\u29BF" : "\u2299";
29394
29394
  }
29395
29395
  async choiceSeparator(choice, i) {
29396
- let sep3 = await this.resolve(choice.separator, this.state, choice, i) || ":";
29397
- return sep3 ? " " + this.styles.disabled(sep3) : "";
29396
+ let sep4 = await this.resolve(choice.separator, this.state, choice, i) || ":";
29397
+ return sep4 ? " " + this.styles.disabled(sep4) : "";
29398
29398
  }
29399
29399
  async renderChoice(choice, i) {
29400
29400
  await this.onChoice(choice, i);
@@ -29404,7 +29404,7 @@ var require_form = __commonJS({
29404
29404
  let help = hint;
29405
29405
  let focused = this.index === i;
29406
29406
  let validate = choice.validate || (() => true);
29407
- let sep3 = await this.choiceSeparator(choice, i);
29407
+ let sep4 = await this.choiceSeparator(choice, i);
29408
29408
  let msg = choice.message;
29409
29409
  if (this.align === "right")
29410
29410
  msg = msg.padStart(this.longest + 1, " ");
@@ -29418,7 +29418,7 @@ var require_form = __commonJS({
29418
29418
  let style = styles[color];
29419
29419
  let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
29420
29420
  let indent = this.indent(choice);
29421
- let line = () => [indent, indicator, msg + sep3, input, help].filter(Boolean).join(" ");
29421
+ let line = () => [indent, indicator, msg + sep4, input, help].filter(Boolean).join(" ");
29422
29422
  if (state.submitted) {
29423
29423
  msg = colors.unstyle(msg);
29424
29424
  input = submitted(input);
@@ -29574,10 +29574,10 @@ var require_boolean = __commonJS({
29574
29574
  async render() {
29575
29575
  let { input, size } = this.state;
29576
29576
  let prefix = await this.prefix();
29577
- let sep3 = await this.separator();
29577
+ let sep4 = await this.separator();
29578
29578
  let msg = await this.message();
29579
29579
  let hint = this.styles.muted(this.default);
29580
- let promptLine = [prefix, msg, hint, sep3].filter(Boolean).join(" ");
29580
+ let promptLine = [prefix, msg, hint, sep4].filter(Boolean).join(" ");
29581
29581
  this.state.prompt = promptLine;
29582
29582
  let header = await this.header();
29583
29583
  let value = this.value = this.cast(input);
@@ -96038,7 +96038,7 @@ var require_shared = __commonJS({
96038
96038
  var isBinaryPath$1 = (filePath) => extensions.has(path5.extname(filePath).slice(1).toLowerCase());
96039
96039
  var constants4 = {};
96040
96040
  (function(exports3) {
96041
- const { sep: sep3 } = require$$0$2;
96041
+ const { sep: sep4 } = require$$0$2;
96042
96042
  const { platform } = process;
96043
96043
  const os2 = require$$2$1;
96044
96044
  exports3.EV_ALL = "all";
@@ -96066,7 +96066,7 @@ var require_shared = __commonJS({
96066
96066
  exports3.KEY_ERR = "errHandlers";
96067
96067
  exports3.KEY_RAW = "rawEmitters";
96068
96068
  exports3.HANDLER_KEYS = [exports3.KEY_LISTENERS, exports3.KEY_ERR, exports3.KEY_RAW];
96069
- exports3.DOT_SLASH = `.${sep3}`;
96069
+ exports3.DOT_SLASH = `.${sep4}`;
96070
96070
  exports3.BACK_SLASH_RE = /\\/g;
96071
96071
  exports3.DOUBLE_SLASH_RE = /\/\//;
96072
96072
  exports3.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -98825,7 +98825,7 @@ var require_is_binary_path = __commonJS({
98825
98825
  var require_constants5 = __commonJS({
98826
98826
  "node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports2) {
98827
98827
  "use strict";
98828
- var { sep: sep3 } = require("path");
98828
+ var { sep: sep4 } = require("path");
98829
98829
  var { platform } = process;
98830
98830
  var os2 = require("os");
98831
98831
  exports2.EV_ALL = "all";
@@ -98853,7 +98853,7 @@ var require_constants5 = __commonJS({
98853
98853
  exports2.KEY_ERR = "errHandlers";
98854
98854
  exports2.KEY_RAW = "rawEmitters";
98855
98855
  exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
98856
- exports2.DOT_SLASH = `.${sep3}`;
98856
+ exports2.DOT_SLASH = `.${sep4}`;
98857
98857
  exports2.BACK_SLASH_RE = /\\/g;
98858
98858
  exports2.DOUBLE_SLASH_RE = /\/\//;
98859
98859
  exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -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
  }
@@ -133242,8 +133258,11 @@ var runTsupBuild = async (context, config, options) => {
133242
133258
  options.plugins.push(environmentPlugin(stormEnv));
133243
133259
  const getConfigOptions = {
133244
133260
  ...options,
133261
+ main: context.main,
133245
133262
  entry: {
133246
- [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
133263
+ [removeExtension(
133264
+ context.main?.split(context.main?.includes(import_node_path6.sep) ? import_node_path6.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
133265
+ )]: context.main
133247
133266
  },
133248
133267
  define: {
133249
133268
  __STORM_CONFIG: JSON.stringify(stormEnv)
@@ -134065,8 +134084,8 @@ var path3 = {
134065
134084
  win32: { sep: "\\" },
134066
134085
  posix: { sep: "/" }
134067
134086
  };
134068
- var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
134069
- minimatch.sep = sep2;
134087
+ var sep3 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
134088
+ minimatch.sep = sep3;
134070
134089
  var GLOBSTAR = Symbol("globstar **");
134071
134090
  minimatch.GLOBSTAR = GLOBSTAR;
134072
134091
  var qmark2 = "[^/]";
@@ -137934,7 +137953,7 @@ var PathScurryBase = class {
137934
137953
  *
137935
137954
  * @internal
137936
137955
  */
137937
- constructor(cwd = process.cwd(), pathImpl, sep3, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
137956
+ constructor(cwd = process.cwd(), pathImpl, sep4, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
137938
137957
  this.#fs = fsFromOption(fs);
137939
137958
  if (cwd instanceof URL || cwd.startsWith("file://")) {
137940
137959
  cwd = (0, import_url.fileURLToPath)(cwd);
@@ -137945,7 +137964,7 @@ var PathScurryBase = class {
137945
137964
  this.#resolveCache = new ResolveCache();
137946
137965
  this.#resolvePosixCache = new ResolveCache();
137947
137966
  this.#children = new ChildrenCache(childrenCacheSize);
137948
- const split = cwdPath.substring(this.rootPath.length).split(sep3);
137967
+ const split = cwdPath.substring(this.rootPath.length).split(sep4);
137949
137968
  if (split.length === 1 && !split[0]) {
137950
137969
  split.pop();
137951
137970
  }