@storm-software/workspace-tools 1.13.15 → 1.13.17

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.
@@ -240,9 +240,9 @@ var require_brace_expansion = __commonJS({
240
240
  }
241
241
  });
242
242
 
243
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-EPAEWGCP.js
243
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-EPAEWGCP.js
244
244
  var require_chunk_EPAEWGCP = __commonJS({
245
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
245
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
246
246
  "use strict";
247
247
  Object.defineProperty(exports, "__esModule", { value: true });
248
248
  var version = "8.0.0";
@@ -6549,9 +6549,9 @@ var require_resolve_from = __commonJS({
6549
6549
  }
6550
6550
  });
6551
6551
 
6552
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-GQ77QZBO.js
6552
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-GQ77QZBO.js
6553
6553
  var require_chunk_GQ77QZBO = __commonJS({
6554
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6554
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6555
6555
  "use strict";
6556
6556
  Object.defineProperty(exports, "__esModule", { value: true });
6557
6557
  function _interopRequireDefault(obj) {
@@ -6829,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
6829
6829
  }
6830
6830
  });
6831
6831
 
6832
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-UIX4URMV.js
6832
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-UIX4URMV.js
6833
6833
  var require_chunk_UIX4URMV = __commonJS({
6834
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6834
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6835
6835
  "use strict";
6836
6836
  Object.defineProperty(exports, "__esModule", { value: true });
6837
6837
  function _interopRequireWildcard(obj) {
@@ -7765,9 +7765,9 @@ var require_dist2 = __commonJS({
7765
7765
  }
7766
7766
  });
7767
7767
 
7768
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-7G76EW2R.js
7768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-7G76EW2R.js
7769
7769
  var require_chunk_7G76EW2R = __commonJS({
7770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7771
7771
  "use strict";
7772
7772
  Object.defineProperty(exports, "__esModule", { value: true });
7773
7773
  function _interopRequireDefault(obj) {
@@ -59804,7 +59804,7 @@ var require_vfs_cjs_development = __commonJS({
59804
59804
  return vHost;
59805
59805
  }
59806
59806
  function createVirtualLanguageServiceHost(sys, rootFiles, compilerOptions, ts2, customTransformers) {
59807
- var fileNames = [].concat(rootFiles);
59807
+ var fileNames2 = [].concat(rootFiles);
59808
59808
  var _createVirtualCompile = createVirtualCompilerHost(sys, compilerOptions, ts2), compilerHost = _createVirtualCompile.compilerHost, _updateFile2 = _createVirtualCompile.updateFile;
59809
59809
  var fileVersions = /* @__PURE__ */ new Map();
59810
59810
  var projectVersion = 0;
@@ -59827,7 +59827,7 @@ var require_vfs_cjs_development = __commonJS({
59827
59827
  // is used in bisecting for changes, it needs to guard against being busted in that
59828
59828
  // couple-week period, so we defensively make a slice here.
59829
59829
  getScriptFileNames: function getScriptFileNames() {
59830
- return fileNames.slice();
59830
+ return fileNames2.slice();
59831
59831
  },
59832
59832
  getScriptSnapshot: function getScriptSnapshot(fileName) {
59833
59833
  var contents = sys.readFile(fileName);
@@ -59846,8 +59846,8 @@ var require_vfs_cjs_development = __commonJS({
59846
59846
  updateFile: function updateFile(sourceFile) {
59847
59847
  projectVersion++;
59848
59848
  fileVersions.set(sourceFile.fileName, projectVersion.toString());
59849
- if (!fileNames.includes(sourceFile.fileName)) {
59850
- fileNames.push(sourceFile.fileName);
59849
+ if (!fileNames2.includes(sourceFile.fileName)) {
59850
+ fileNames2.push(sourceFile.fileName);
59851
59851
  }
59852
59852
  _updateFile2(sourceFile);
59853
59853
  }
@@ -62765,9 +62765,9 @@ var require_chokidar = __commonJS({
62765
62765
  }
62766
62766
  });
62767
62767
 
62768
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/index.js
62768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/index.js
62769
62769
  var require_dist6 = __commonJS({
62770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=73u54ejdk7ltp664vib6oxuiuu_@microsoft+api-extractor@7.38.3_@swc+core@1._pxjyxn5f3fufsl4odtbgbj3qqe/node_modules/tsup/dist/index.js"(exports) {
62770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=v3i5izuihlhi3k74xpov7onvhm_@microsoft+api-extractor@7.38.3_@swc+core@1._3j6ypyhhwgwauhbu54hri2onty/node_modules/tsup/dist/index.js"(exports) {
62771
62771
  "use strict";
62772
62772
  Object.defineProperty(exports, "__esModule", { value: true });
62773
62773
  function _interopRequireDefault(obj) {
@@ -65053,21 +65053,6 @@ var require_dist6 = __commonJS({
65053
65053
  }
65054
65054
  return fileMapping;
65055
65055
  }
65056
- var getFile = (name, logger3) => {
65057
- logger3.info("tsc", `Reading file content for: ${name}`);
65058
- return _fs2.default.promises.readFile(name, "utf8");
65059
- };
65060
- var addFile = async (name, map, options2, logger3) => {
65061
- let relativeName = name.replaceAll("/", "\\").replace(options2.workspaceRoot, "").replaceAll("\\", "/");
65062
- if (relativeName.startsWith("/")) {
65063
- relativeName = relativeName.substring(1);
65064
- }
65065
- if (map && !map.has(relativeName)) {
65066
- logger3.info("tsc", `Adding file to FS Map: ${relativeName}`);
65067
- const file = await getFile(name, logger3);
65068
- map.set(relativeName, file);
65069
- }
65070
- };
65071
65056
  async function emit(options2, compilerOptions, tsconfig) {
65072
65057
  logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
65073
65058
  let rawTsconfig = _bundlerequire.loadTsConfig.call(
@@ -65090,82 +65075,18 @@ var require_dist6 = __commonJS({
65090
65075
  logger.info("tsc", "Raw tsconfig.json: ");
65091
65076
  logger.info("tsc", rawTsconfig);
65092
65077
  logger.info("tsc", "Parsing tsconfig.json");
65093
- let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
65094
- tscOptions?.tsConfig ? tscOptions.tsConfig : {
65095
- ...rawTsconfig.data,
65096
- compilerOptions: {
65097
- ...rawTsconfig.data.compilerOptions,
65098
- ...compilerOptions,
65099
- // Enable declaration emit and disable javascript emit
65100
- outDir: options2.outDir,
65101
- allowJs: true,
65102
- noEmit: false,
65103
- declaration: true,
65104
- declarationMap: true,
65105
- declarationDir,
65106
- emitDeclarationOnly: true
65107
- },
65108
- files: [
65109
- ...rawTsconfig.data.files ?? [],
65110
- ...rawTsconfig.files ?? []
65111
- ],
65112
- include: [
65113
- ...rawTsconfig.data.include?.map?.((include) => _path.join(
65114
- options2.projectRoot,
65115
- include
65116
- )) ?? []
65117
- ],
65118
- exclude: [
65119
- ...rawTsconfig.data.exclude?.map?.((exclude) => _path.join(
65120
- options2.projectRoot,
65121
- exclude
65122
- )) ?? []
65123
- ]
65124
- },
65125
- _typescript2.default.sys,
65126
- options2.workspaceRoot ? options2.workspaceRoot : tsconfig ? _path.dirname.call(void 0, tsconfig) : options2.projectRoot
65127
- );
65128
- logger.info("tsc", parsedTsconfig);
65129
- const fsMap2 = await _tsvfs2.createDefaultMapFromNodeModules(
65130
- parsedTsconfig.options,
65131
- _typescript2.default,
65132
- options2.workspaceRoot
65133
- );
65134
- logger.info("tsc", "Created FS Map");
65135
- await Promise.all(parsedTsconfig.fileNames.map((fileName) => addFile(fileName, fsMap2, options2, logger)));
65136
- logger.info("tsc", "Added files to FS Map");
65137
- const system = _tsvfs2.createFSBackedSystem(
65138
- fsMap2,
65139
- options2.workspaceRoot,
65140
- _typescript2.default
65141
- );
65142
- logger.info("tsc", "Created virtual file system");
65143
- const host = _tsvfs2.createVirtualCompilerHost(
65144
- system,
65145
- parsedTsconfig.options,
65146
- _typescript2.default
65147
- );
65148
- logger.info("tsc", "Created virtual compiler host");
65149
- const fileNames = [...fsMap2.keys()];
65150
- logger.info("tsc", `Found the following file names: ${fileNames.join(" \n")}`);
65151
- const program = _typescript2.default.createProgram(
65152
- fileNames,
65153
- parsedTsconfig.options,
65154
- host.compilerHost
65155
- );
65156
- logger.info("tsc", "Created program");
65157
- logger.info("tsc", "Emitting DTS files with the following options: ");
65158
- logger.info("tsc", parsedTsconfig.options);
65159
- let fileMapping;
65160
- try {
65161
- logger.info("tsc", "Emitting DTS files");
65162
- fileMapping = emitDtsFiles(program, host.compilerHost, options2);
65163
- logger.info("tsc", "Emit DTS files complete");
65164
- logger.info("tsc", fileMapping);
65165
- } catch (e) {
65166
- logger.error("tsc", "An error occured while emitting DTS files");
65167
- logger.error("tsc", e);
65168
- }
65078
+ compilerOptions.declarationDir = declarationDir;
65079
+ logger.info("tsc", "Using the following compiler Options: ");
65080
+ logger.info("tsc", compilerOptions);
65081
+ const host = _typescript2.default.createCompilerHost(compilerOptions.options);
65082
+ const program = _typescript2.default.createProgram({
65083
+ rootNames: tsconfig.fileNames,
65084
+ options: tsconfig.options,
65085
+ host
65086
+ });
65087
+ const fileMapping = emitDtsFiles(program, host, options2);
65088
+ logger.info("tsc", `Emitted the following file names:
65089
+ ${fileNames.join(" \n")}`);
65169
65090
  return getExports(options2, program, fileMapping);
65170
65091
  }
65171
65092
  async function runTypeScriptCompiler(options2) {
@@ -72109,8 +72030,9 @@ function modernConfig({
72109
72030
  define: define2,
72110
72031
  env: env2,
72111
72032
  tsCdnStorage,
72112
- tscOptions: tscOptions2
72033
+ dtsTsConfig
72113
72034
  }) {
72035
+ let outputPath = (0, import_path2.join)(outDir, "dist", "modern");
72114
72036
  return {
72115
72037
  name: "modern",
72116
72038
  entry,
@@ -72127,7 +72049,7 @@ function modernConfig({
72127
72049
  tsconfig,
72128
72050
  projectRoot,
72129
72051
  workspaceRoot,
72130
- outDir: (0, import_path2.join)(outDir, "dist", "modern"),
72052
+ outDir: outputPath,
72131
72053
  silent: !verbose,
72132
72054
  metafile: true,
72133
72055
  shims: true,
@@ -72141,7 +72063,11 @@ function modernConfig({
72141
72063
  experimentalDts: {
72142
72064
  entry,
72143
72065
  compilerOptions: {
72144
- noEmit: false
72066
+ ...dtsTsConfig,
72067
+ options: {
72068
+ ...dtsTsConfig.options,
72069
+ outDir: outputPath
72070
+ }
72145
72071
  }
72146
72072
  },
72147
72073
  apiReport,
@@ -72150,8 +72076,7 @@ function modernConfig({
72150
72076
  sourcemap: debug,
72151
72077
  clean: false,
72152
72078
  tsCdnStorage,
72153
- outExtension,
72154
- tscOptions: tscOptions2
72079
+ outExtension
72155
72080
  };
72156
72081
  }
72157
72082
  function legacyConfig({
@@ -72168,8 +72093,9 @@ function legacyConfig({
72168
72093
  define: define2,
72169
72094
  env: env2,
72170
72095
  tsCdnStorage,
72171
- tscOptions: tscOptions2
72096
+ dtsTsConfig
72172
72097
  }) {
72098
+ let outputPath = (0, import_path2.join)(outDir, "dist", "legacy");
72173
72099
  return {
72174
72100
  name: "legacy",
72175
72101
  entry,
@@ -72178,7 +72104,7 @@ function legacyConfig({
72178
72104
  tsconfig,
72179
72105
  projectRoot,
72180
72106
  workspaceRoot,
72181
- outDir: (0, import_path2.join)(outDir, "dist", "legacy"),
72107
+ outDir: outputPath,
72182
72108
  silent: !verbose,
72183
72109
  metafile: true,
72184
72110
  shims: true,
@@ -72192,7 +72118,11 @@ function legacyConfig({
72192
72118
  experimentalDts: {
72193
72119
  entry,
72194
72120
  compilerOptions: {
72195
- noEmit: false
72121
+ ...dtsTsConfig,
72122
+ options: {
72123
+ ...dtsTsConfig.options,
72124
+ outDir: outputPath
72125
+ }
72196
72126
  }
72197
72127
  },
72198
72128
  apiReport: false,
@@ -72201,8 +72131,7 @@ function legacyConfig({
72201
72131
  sourcemap: debug,
72202
72132
  clean: false,
72203
72133
  tsCdnStorage,
72204
- outExtension,
72205
- tscOptions: tscOptions2
72134
+ outExtension
72206
72135
  };
72207
72136
  }
72208
72137
  function workerConfig({
@@ -72221,7 +72150,7 @@ function workerConfig({
72221
72150
  define: define2,
72222
72151
  env: env2,
72223
72152
  tsCdnStorage,
72224
- tscOptions: tscOptions2
72153
+ dtsTsConfig
72225
72154
  }) {
72226
72155
  return {
72227
72156
  name: "worker",
@@ -72246,7 +72175,11 @@ function workerConfig({
72246
72175
  experimentalDts: {
72247
72176
  entry,
72248
72177
  compilerOptions: {
72249
- noEmit: false
72178
+ ...dtsTsConfig,
72179
+ options: {
72180
+ ...dtsTsConfig.options,
72181
+ outDir: (0, import_path2.join)(outDir, "dist")
72182
+ }
72250
72183
  }
72251
72184
  },
72252
72185
  apiReport,
@@ -72255,8 +72188,7 @@ function workerConfig({
72255
72188
  sourcemap: debug,
72256
72189
  clean: false,
72257
72190
  tsCdnStorage,
72258
- outExtension,
72259
- tscOptions: tscOptions2
72191
+ outExtension
72260
72192
  };
72261
72193
  }
72262
72194
  function getConfig(workspaceRoot, projectRoot, sourceRoot, {
@@ -72274,7 +72206,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
72274
72206
  define: define2,
72275
72207
  env: env2,
72276
72208
  verbose,
72277
- tscOptions: tscOptions2,
72209
+ dtsTsConfig,
72278
72210
  ...rest
72279
72211
  }) {
72280
72212
  const entry = globSync(
@@ -72318,7 +72250,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
72318
72250
  workspaceRoot
72319
72251
  }),
72320
72252
  options: options2,
72321
- tscOptions: tscOptions2
72253
+ dtsTsConfig
72322
72254
  };
72323
72255
  if (platform === "worker") {
72324
72256
  return (0, import_tsup.defineConfig)(workerConfig(params));