@storm-software/workspace-tools 1.13.15 → 1.13.16
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 +7 -0
- package/index.js +182 -260
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +240 -289
- package/src/executors/tsup/get-config.js +52 -120
|
@@ -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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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
|
|
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
|
|
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 (!
|
|
59850
|
-
|
|
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=
|
|
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=
|
|
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
|
-
|
|
65094
|
-
|
|
65095
|
-
|
|
65096
|
-
|
|
65097
|
-
|
|
65098
|
-
|
|
65099
|
-
|
|
65100
|
-
|
|
65101
|
-
|
|
65102
|
-
|
|
65103
|
-
|
|
65104
|
-
|
|
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
|
-
|
|
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:
|
|
72052
|
+
outDir: outputPath,
|
|
72131
72053
|
silent: !verbose,
|
|
72132
72054
|
metafile: true,
|
|
72133
72055
|
shims: true,
|
|
@@ -72141,7 +72063,13 @@ function modernConfig({
|
|
|
72141
72063
|
experimentalDts: {
|
|
72142
72064
|
entry,
|
|
72143
72065
|
compilerOptions: {
|
|
72144
|
-
|
|
72066
|
+
...dtsTsConfig,
|
|
72067
|
+
outDir: outputPath,
|
|
72068
|
+
allowJs: true,
|
|
72069
|
+
noEmit: false,
|
|
72070
|
+
declaration: true,
|
|
72071
|
+
declarationMap: true,
|
|
72072
|
+
emitDeclarationOnly: true
|
|
72145
72073
|
}
|
|
72146
72074
|
},
|
|
72147
72075
|
apiReport,
|
|
@@ -72150,8 +72078,7 @@ function modernConfig({
|
|
|
72150
72078
|
sourcemap: debug,
|
|
72151
72079
|
clean: false,
|
|
72152
72080
|
tsCdnStorage,
|
|
72153
|
-
outExtension
|
|
72154
|
-
tscOptions: tscOptions2
|
|
72081
|
+
outExtension
|
|
72155
72082
|
};
|
|
72156
72083
|
}
|
|
72157
72084
|
function legacyConfig({
|
|
@@ -72168,8 +72095,9 @@ function legacyConfig({
|
|
|
72168
72095
|
define: define2,
|
|
72169
72096
|
env: env2,
|
|
72170
72097
|
tsCdnStorage,
|
|
72171
|
-
|
|
72098
|
+
dtsTsConfig
|
|
72172
72099
|
}) {
|
|
72100
|
+
let outputPath = (0, import_path2.join)(outDir, "dist", "legacy");
|
|
72173
72101
|
return {
|
|
72174
72102
|
name: "legacy",
|
|
72175
72103
|
entry,
|
|
@@ -72178,7 +72106,7 @@ function legacyConfig({
|
|
|
72178
72106
|
tsconfig,
|
|
72179
72107
|
projectRoot,
|
|
72180
72108
|
workspaceRoot,
|
|
72181
|
-
outDir:
|
|
72109
|
+
outDir: outputPath,
|
|
72182
72110
|
silent: !verbose,
|
|
72183
72111
|
metafile: true,
|
|
72184
72112
|
shims: true,
|
|
@@ -72192,7 +72120,13 @@ function legacyConfig({
|
|
|
72192
72120
|
experimentalDts: {
|
|
72193
72121
|
entry,
|
|
72194
72122
|
compilerOptions: {
|
|
72195
|
-
|
|
72123
|
+
...dtsTsConfig,
|
|
72124
|
+
outDir: outputPath,
|
|
72125
|
+
allowJs: true,
|
|
72126
|
+
noEmit: false,
|
|
72127
|
+
declaration: true,
|
|
72128
|
+
declarationMap: true,
|
|
72129
|
+
emitDeclarationOnly: true
|
|
72196
72130
|
}
|
|
72197
72131
|
},
|
|
72198
72132
|
apiReport: false,
|
|
@@ -72201,8 +72135,7 @@ function legacyConfig({
|
|
|
72201
72135
|
sourcemap: debug,
|
|
72202
72136
|
clean: false,
|
|
72203
72137
|
tsCdnStorage,
|
|
72204
|
-
outExtension
|
|
72205
|
-
tscOptions: tscOptions2
|
|
72138
|
+
outExtension
|
|
72206
72139
|
};
|
|
72207
72140
|
}
|
|
72208
72141
|
function workerConfig({
|
|
@@ -72221,7 +72154,7 @@ function workerConfig({
|
|
|
72221
72154
|
define: define2,
|
|
72222
72155
|
env: env2,
|
|
72223
72156
|
tsCdnStorage,
|
|
72224
|
-
|
|
72157
|
+
dtsTsConfig
|
|
72225
72158
|
}) {
|
|
72226
72159
|
return {
|
|
72227
72160
|
name: "worker",
|
|
@@ -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
|
-
|
|
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
|
-
|
|
72253
|
+
dtsTsConfig
|
|
72322
72254
|
};
|
|
72323
72255
|
if (platform === "worker") {
|
|
72324
72256
|
return (0, import_tsup.defineConfig)(workerConfig(params));
|