@storm-software/workspace-tools 1.10.20 → 1.11.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 +7 -0
- package/index.js +23 -23
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +96 -58
- package/src/executors/tsup/get-config.js +100 -60
package/package.json
CHANGED
|
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
408390
408390
|
}
|
|
408391
408391
|
});
|
|
408392
408392
|
|
|
408393
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
408393
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
408394
408394
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
408395
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
408395
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
408396
408396
|
"use strict";
|
|
408397
408397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
408398
408398
|
var version = "8.0.0";
|
|
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
|
|
|
410039
410039
|
}
|
|
410040
410040
|
});
|
|
410041
410041
|
|
|
410042
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410042
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
410043
410043
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
410044
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410044
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
410045
410045
|
"use strict";
|
|
410046
410046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410047
410047
|
function _interopRequireDefault(obj) {
|
|
@@ -410239,13 +410239,12 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
410239
410239
|
};
|
|
410240
410240
|
}
|
|
410241
410241
|
function ensureTempDeclarationDir(options) {
|
|
410242
|
-
const
|
|
410243
|
-
const dirPath = _path2.default.join(cwd, "tmp", ".tsup", "declaration");
|
|
410242
|
+
const dirPath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", "declaration");
|
|
410244
410243
|
if (_fs2.default.existsSync(dirPath)) {
|
|
410245
410244
|
return dirPath;
|
|
410246
410245
|
}
|
|
410247
410246
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
410248
|
-
const gitIgnorePath = _path2.default.join(
|
|
410247
|
+
const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
|
|
410249
410248
|
writeFileSync2(gitIgnorePath, "**/*\n");
|
|
410250
410249
|
return dirPath;
|
|
410251
410250
|
}
|
|
@@ -410320,9 +410319,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
410320
410319
|
}
|
|
410321
410320
|
});
|
|
410322
410321
|
|
|
410323
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410322
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
410324
410323
|
var require_chunk_UIX4URMV = __commonJS({
|
|
410325
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410324
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
410326
410325
|
"use strict";
|
|
410327
410326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410328
410327
|
function _interopRequireWildcard(obj) {
|
|
@@ -411256,9 +411255,9 @@ var require_dist2 = __commonJS({
|
|
|
411256
411255
|
}
|
|
411257
411256
|
});
|
|
411258
411257
|
|
|
411259
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
411258
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
411260
411259
|
var require_chunk_7G76EW2R = __commonJS({
|
|
411261
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
411260
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
411262
411261
|
"use strict";
|
|
411263
411262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
411264
411263
|
function _interopRequireDefault(obj) {
|
|
@@ -465064,9 +465063,9 @@ var require_chokidar = __commonJS({
|
|
|
465064
465063
|
}
|
|
465065
465064
|
});
|
|
465066
465065
|
|
|
465067
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
465066
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/index.js
|
|
465068
465067
|
var require_dist5 = __commonJS({
|
|
465069
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
465068
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/index.js"(exports) {
|
|
465070
465069
|
"use strict";
|
|
465071
465070
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
465072
465071
|
function _interopRequireDefault(obj) {
|
|
@@ -466633,14 +466632,15 @@ var require_dist5 = __commonJS({
|
|
|
466633
466632
|
".js": extension.js || defaultExtension.js
|
|
466634
466633
|
};
|
|
466635
466634
|
};
|
|
466636
|
-
var generateExternal = async (external) => {
|
|
466635
|
+
var generateExternal = async (external, options, logger3) => {
|
|
466637
466636
|
const result = [];
|
|
466637
|
+
const pkgJsonPath = packageJsonSearch(options.outDir, options.silent, "CLI", logger3);
|
|
466638
466638
|
for (const item of external) {
|
|
466639
466639
|
if (typeof item !== "string" || !item.endsWith("package.json")) {
|
|
466640
466640
|
result.push(item);
|
|
466641
466641
|
continue;
|
|
466642
466642
|
}
|
|
466643
|
-
let pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(process.cwd(), item));
|
|
466643
|
+
let pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(pkgJsonPath ?? process.cwd(), item));
|
|
466644
466644
|
const deps = await _chunk7G76EW2Rjs.getProductionDeps.call(void 0, pkgPath);
|
|
466645
466645
|
result.push(...deps);
|
|
466646
466646
|
}
|
|
@@ -466648,7 +466648,7 @@ var require_dist5 = __commonJS({
|
|
|
466648
466648
|
};
|
|
466649
466649
|
var packageJsonSearch = (outDir, silent, format2, logger3) => {
|
|
466650
466650
|
let pkgPath = outDir ? outDir : process.cwd();
|
|
466651
|
-
!silent && logger3.info(format2, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
466651
|
+
!silent && logger3 && logger3.info(format2, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
466652
466652
|
if (pkgPath) {
|
|
466653
466653
|
const splits = pkgPath.split("/");
|
|
466654
466654
|
if (splits.length > 0) {
|
|
@@ -466660,12 +466660,12 @@ var require_dist5 = __commonJS({
|
|
|
466660
466660
|
).join("/"),
|
|
466661
466661
|
"package.json"
|
|
466662
466662
|
);
|
|
466663
|
-
!silent && logger3.info(
|
|
466663
|
+
!silent && logger3 && logger3.info(
|
|
466664
466664
|
format2,
|
|
466665
466665
|
`\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`
|
|
466666
466666
|
);
|
|
466667
466667
|
if (_fs2.default.existsSync(packageJsonPath)) {
|
|
466668
|
-
!silent && logger3.info(
|
|
466668
|
+
!silent && logger3 && logger3.info(
|
|
466669
466669
|
format2,
|
|
466670
466670
|
`\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`
|
|
466671
466671
|
);
|
|
@@ -466691,7 +466691,7 @@ var require_dist5 = __commonJS({
|
|
|
466691
466691
|
const external = [
|
|
466692
466692
|
// Exclude dependencies, e.g. `lodash`, `lodash/get`
|
|
466693
466693
|
...deps.map((dep) => new RegExp(`^${dep}($|\\/|\\\\)`)),
|
|
466694
|
-
...await generateExternal(options.external || [])
|
|
466694
|
+
...await generateExternal(options.external || [], options, logger3)
|
|
466695
466695
|
];
|
|
466696
466696
|
const outDir = options.outDir;
|
|
466697
466697
|
const outExtension2 = getOutputExtensionMap(options, format2, pkg.type);
|
|
@@ -467366,7 +467366,7 @@ var require_dist5 = __commonJS({
|
|
|
467366
467366
|
rawTsconfig.data.compilerOptions = {};
|
|
467367
467367
|
}
|
|
467368
467368
|
logger.info("tsc", "Getting temporary declaration directory");
|
|
467369
|
-
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
|
|
467369
|
+
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
467370
467370
|
logger.info("tsc", declarationDir);
|
|
467371
467371
|
logger.info("tsc", "Parsing tsconfig.json");
|
|
467372
467372
|
let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
|
|
@@ -467780,7 +467780,7 @@ var require_dist5 = __commonJS({
|
|
|
467780
467780
|
async function build2(_options) {
|
|
467781
467781
|
const config = _options.config === false ? {} : await _chunk7G76EW2Rjs.loadTsupConfig.call(
|
|
467782
467782
|
void 0,
|
|
467783
|
-
process.cwd(),
|
|
467783
|
+
_options.workspaceRoot ?? process.cwd(),
|
|
467784
467784
|
_options.config === true ? void 0 : _options.config
|
|
467785
467785
|
);
|
|
467786
467786
|
const configData = typeof config.data === "function" ? await config.data(_options) : config.data;
|
|
@@ -467846,7 +467846,7 @@ var require_dist5 = __commonJS({
|
|
|
467846
467846
|
let onSuccessProcess;
|
|
467847
467847
|
let onSuccessCleanup;
|
|
467848
467848
|
const buildDependencies = /* @__PURE__ */ new Set();
|
|
467849
|
-
let depsHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, process.cwd());
|
|
467849
|
+
let depsHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, options.workspaceRoot ?? process.cwd());
|
|
467850
467850
|
const doOnSuccessCleanup = async () => {
|
|
467851
467851
|
if (onSuccessProcess) {
|
|
467852
467852
|
await killProcess({
|
|
@@ -467968,7 +467968,7 @@ var require_dist5 = __commonJS({
|
|
|
467968
467968
|
let shouldSkipChange = false;
|
|
467969
467969
|
if (options.watch === true) {
|
|
467970
467970
|
if (file === "package.json" && !buildDependencies.has(file)) {
|
|
467971
|
-
const currentHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, process.cwd());
|
|
467971
|
+
const currentHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, options.workspaceRoot ?? process.cwd());
|
|
467972
467972
|
shouldSkipChange = currentHash === depsHash;
|
|
467973
467973
|
depsHash = currentHash;
|
|
467974
467974
|
} else if (!buildDependencies.has(file)) {
|
|
@@ -474353,6 +474353,56 @@ function legacyConfig({
|
|
|
474353
474353
|
outExtension
|
|
474354
474354
|
};
|
|
474355
474355
|
}
|
|
474356
|
+
function workerConfig({
|
|
474357
|
+
entry,
|
|
474358
|
+
outDir,
|
|
474359
|
+
projectRoot,
|
|
474360
|
+
workspaceRoot,
|
|
474361
|
+
tsconfig = "tsconfig.json",
|
|
474362
|
+
debug = false,
|
|
474363
|
+
external,
|
|
474364
|
+
banner = {},
|
|
474365
|
+
verbose = false,
|
|
474366
|
+
apiReport = true,
|
|
474367
|
+
docModel = true,
|
|
474368
|
+
tsdocMetadata = true,
|
|
474369
|
+
define: define2,
|
|
474370
|
+
env,
|
|
474371
|
+
options
|
|
474372
|
+
}) {
|
|
474373
|
+
return {
|
|
474374
|
+
name: "worker",
|
|
474375
|
+
entry,
|
|
474376
|
+
format: ["esm"],
|
|
474377
|
+
target: ["chrome95"],
|
|
474378
|
+
tsconfig,
|
|
474379
|
+
projectRoot,
|
|
474380
|
+
workspaceRoot,
|
|
474381
|
+
outDir: (0, import_path2.join)(outDir, "dist", "worker"),
|
|
474382
|
+
silent: !verbose,
|
|
474383
|
+
metafile: true,
|
|
474384
|
+
shims: true,
|
|
474385
|
+
minify: false,
|
|
474386
|
+
external,
|
|
474387
|
+
platform: "browser",
|
|
474388
|
+
banner,
|
|
474389
|
+
define: define2,
|
|
474390
|
+
env,
|
|
474391
|
+
dts: false,
|
|
474392
|
+
experimentalDts: {
|
|
474393
|
+
entry,
|
|
474394
|
+
compilerOptions: {
|
|
474395
|
+
noEmit: false
|
|
474396
|
+
}
|
|
474397
|
+
},
|
|
474398
|
+
apiReport,
|
|
474399
|
+
docModel,
|
|
474400
|
+
tsdocMetadata,
|
|
474401
|
+
sourcemap: debug,
|
|
474402
|
+
clean: false,
|
|
474403
|
+
outExtension
|
|
474404
|
+
};
|
|
474405
|
+
}
|
|
474356
474406
|
function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
474357
474407
|
outputPath,
|
|
474358
474408
|
tsConfig,
|
|
@@ -474390,41 +474440,29 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
474390
474440
|
}
|
|
474391
474441
|
return ret;
|
|
474392
474442
|
}, {});
|
|
474393
|
-
|
|
474394
|
-
|
|
474395
|
-
|
|
474396
|
-
|
|
474397
|
-
|
|
474398
|
-
|
|
474399
|
-
|
|
474400
|
-
|
|
474401
|
-
|
|
474402
|
-
|
|
474403
|
-
|
|
474404
|
-
|
|
474405
|
-
|
|
474406
|
-
|
|
474407
|
-
|
|
474408
|
-
|
|
474409
|
-
|
|
474410
|
-
|
|
474411
|
-
|
|
474412
|
-
|
|
474413
|
-
|
|
474414
|
-
|
|
474415
|
-
|
|
474416
|
-
workspaceRoot,
|
|
474417
|
-
tsconfig: tsConfig,
|
|
474418
|
-
debug,
|
|
474419
|
-
banner,
|
|
474420
|
-
platform,
|
|
474421
|
-
external,
|
|
474422
|
-
verbose,
|
|
474423
|
-
define: define2,
|
|
474424
|
-
env,
|
|
474425
|
-
options
|
|
474426
|
-
})
|
|
474427
|
-
]);
|
|
474443
|
+
const params = {
|
|
474444
|
+
entry,
|
|
474445
|
+
outDir: outputPath,
|
|
474446
|
+
projectRoot,
|
|
474447
|
+
workspaceRoot,
|
|
474448
|
+
tsconfig: tsConfig,
|
|
474449
|
+
debug,
|
|
474450
|
+
banner,
|
|
474451
|
+
platform,
|
|
474452
|
+
external,
|
|
474453
|
+
verbose,
|
|
474454
|
+
apiReport,
|
|
474455
|
+
docModel,
|
|
474456
|
+
tsdocMetadata,
|
|
474457
|
+
define: define2,
|
|
474458
|
+
env,
|
|
474459
|
+
options
|
|
474460
|
+
};
|
|
474461
|
+
const config = [modernConfig(params), legacyConfig(params)];
|
|
474462
|
+
if (platform === "node") {
|
|
474463
|
+
config.push(workerConfig(params));
|
|
474464
|
+
}
|
|
474465
|
+
return (0, import_tsup.defineConfig)(config);
|
|
474428
474466
|
}
|
|
474429
474467
|
var outExtension = ({ options, format: format2, pkgType }) => {
|
|
474430
474468
|
console.log(options);
|
|
@@ -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=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/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=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/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=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/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=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/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) {
|
|
@@ -6749,13 +6749,12 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
6749
6749
|
};
|
|
6750
6750
|
}
|
|
6751
6751
|
function ensureTempDeclarationDir(options) {
|
|
6752
|
-
const
|
|
6753
|
-
const dirPath = _path2.default.join(cwd, "tmp", ".tsup", "declaration");
|
|
6752
|
+
const dirPath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", "declaration");
|
|
6754
6753
|
if (_fs2.default.existsSync(dirPath)) {
|
|
6755
6754
|
return dirPath;
|
|
6756
6755
|
}
|
|
6757
6756
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
6758
|
-
const gitIgnorePath = _path2.default.join(
|
|
6757
|
+
const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
|
|
6759
6758
|
writeFileSync(gitIgnorePath, "**/*\n");
|
|
6760
6759
|
return dirPath;
|
|
6761
6760
|
}
|
|
@@ -6830,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
6830
6829
|
}
|
|
6831
6830
|
});
|
|
6832
6831
|
|
|
6833
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6832
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
6834
6833
|
var require_chunk_UIX4URMV = __commonJS({
|
|
6835
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6834
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
6836
6835
|
"use strict";
|
|
6837
6836
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6838
6837
|
function _interopRequireWildcard(obj) {
|
|
@@ -7766,9 +7765,9 @@ var require_dist2 = __commonJS({
|
|
|
7766
7765
|
}
|
|
7767
7766
|
});
|
|
7768
7767
|
|
|
7769
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
7768
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
7770
7769
|
var require_chunk_7G76EW2R = __commonJS({
|
|
7771
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
7770
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
7772
7771
|
"use strict";
|
|
7773
7772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7774
7773
|
function _interopRequireDefault(obj) {
|
|
@@ -249451,9 +249450,9 @@ var require_chokidar = __commonJS({
|
|
|
249451
249450
|
}
|
|
249452
249451
|
});
|
|
249453
249452
|
|
|
249454
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
249453
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/index.js
|
|
249455
249454
|
var require_dist5 = __commonJS({
|
|
249456
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
249455
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=5tqqjclwmacdlcpsbwlaqptbpe_@microsoft+api-extractor@7.38.3_@swc+core@1._uwnm353vjxd2qwlawie2fmt4ku/node_modules/tsup/dist/index.js"(exports) {
|
|
249457
249456
|
"use strict";
|
|
249458
249457
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249459
249458
|
function _interopRequireDefault(obj) {
|
|
@@ -251020,14 +251019,15 @@ var require_dist5 = __commonJS({
|
|
|
251020
251019
|
".js": extension.js || defaultExtension.js
|
|
251021
251020
|
};
|
|
251022
251021
|
};
|
|
251023
|
-
var generateExternal = async (external) => {
|
|
251022
|
+
var generateExternal = async (external, options, logger3) => {
|
|
251024
251023
|
const result = [];
|
|
251024
|
+
const pkgJsonPath = packageJsonSearch(options.outDir, options.silent, "CLI", logger3);
|
|
251025
251025
|
for (const item of external) {
|
|
251026
251026
|
if (typeof item !== "string" || !item.endsWith("package.json")) {
|
|
251027
251027
|
result.push(item);
|
|
251028
251028
|
continue;
|
|
251029
251029
|
}
|
|
251030
|
-
let pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(process.cwd(), item));
|
|
251030
|
+
let pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(pkgJsonPath ?? process.cwd(), item));
|
|
251031
251031
|
const deps = await _chunk7G76EW2Rjs.getProductionDeps.call(void 0, pkgPath);
|
|
251032
251032
|
result.push(...deps);
|
|
251033
251033
|
}
|
|
@@ -251035,7 +251035,7 @@ var require_dist5 = __commonJS({
|
|
|
251035
251035
|
};
|
|
251036
251036
|
var packageJsonSearch = (outDir, silent, format, logger3) => {
|
|
251037
251037
|
let pkgPath = outDir ? outDir : process.cwd();
|
|
251038
|
-
!silent && logger3.info(format, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
251038
|
+
!silent && logger3 && logger3.info(format, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
251039
251039
|
if (pkgPath) {
|
|
251040
251040
|
const splits = pkgPath.split("/");
|
|
251041
251041
|
if (splits.length > 0) {
|
|
@@ -251047,12 +251047,12 @@ var require_dist5 = __commonJS({
|
|
|
251047
251047
|
).join("/"),
|
|
251048
251048
|
"package.json"
|
|
251049
251049
|
);
|
|
251050
|
-
!silent && logger3.info(
|
|
251050
|
+
!silent && logger3 && logger3.info(
|
|
251051
251051
|
format,
|
|
251052
251052
|
`\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`
|
|
251053
251053
|
);
|
|
251054
251054
|
if (_fs2.default.existsSync(packageJsonPath)) {
|
|
251055
|
-
!silent && logger3.info(
|
|
251055
|
+
!silent && logger3 && logger3.info(
|
|
251056
251056
|
format,
|
|
251057
251057
|
`\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`
|
|
251058
251058
|
);
|
|
@@ -251078,7 +251078,7 @@ var require_dist5 = __commonJS({
|
|
|
251078
251078
|
const external = [
|
|
251079
251079
|
// Exclude dependencies, e.g. `lodash`, `lodash/get`
|
|
251080
251080
|
...deps.map((dep) => new RegExp(`^${dep}($|\\/|\\\\)`)),
|
|
251081
|
-
...await generateExternal(options.external || [])
|
|
251081
|
+
...await generateExternal(options.external || [], options, logger3)
|
|
251082
251082
|
];
|
|
251083
251083
|
const outDir = options.outDir;
|
|
251084
251084
|
const outExtension2 = getOutputExtensionMap(options, format, pkg.type);
|
|
@@ -251753,7 +251753,7 @@ var require_dist5 = __commonJS({
|
|
|
251753
251753
|
rawTsconfig.data.compilerOptions = {};
|
|
251754
251754
|
}
|
|
251755
251755
|
logger.info("tsc", "Getting temporary declaration directory");
|
|
251756
|
-
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
|
|
251756
|
+
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
251757
251757
|
logger.info("tsc", declarationDir);
|
|
251758
251758
|
logger.info("tsc", "Parsing tsconfig.json");
|
|
251759
251759
|
let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
|
|
@@ -252167,7 +252167,7 @@ var require_dist5 = __commonJS({
|
|
|
252167
252167
|
async function build(_options) {
|
|
252168
252168
|
const config = _options.config === false ? {} : await _chunk7G76EW2Rjs.loadTsupConfig.call(
|
|
252169
252169
|
void 0,
|
|
252170
|
-
process.cwd(),
|
|
252170
|
+
_options.workspaceRoot ?? process.cwd(),
|
|
252171
252171
|
_options.config === true ? void 0 : _options.config
|
|
252172
252172
|
);
|
|
252173
252173
|
const configData = typeof config.data === "function" ? await config.data(_options) : config.data;
|
|
@@ -252233,7 +252233,7 @@ var require_dist5 = __commonJS({
|
|
|
252233
252233
|
let onSuccessProcess;
|
|
252234
252234
|
let onSuccessCleanup;
|
|
252235
252235
|
const buildDependencies = /* @__PURE__ */ new Set();
|
|
252236
|
-
let depsHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, process.cwd());
|
|
252236
|
+
let depsHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, options.workspaceRoot ?? process.cwd());
|
|
252237
252237
|
const doOnSuccessCleanup = async () => {
|
|
252238
252238
|
if (onSuccessProcess) {
|
|
252239
252239
|
await killProcess({
|
|
@@ -252355,7 +252355,7 @@ var require_dist5 = __commonJS({
|
|
|
252355
252355
|
let shouldSkipChange = false;
|
|
252356
252356
|
if (options.watch === true) {
|
|
252357
252357
|
if (file === "package.json" && !buildDependencies.has(file)) {
|
|
252358
|
-
const currentHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, process.cwd());
|
|
252358
|
+
const currentHash = await _chunk7G76EW2Rjs.getAllDepsHash.call(void 0, options.workspaceRoot ?? process.cwd());
|
|
252359
252359
|
shouldSkipChange = currentHash === depsHash;
|
|
252360
252360
|
depsHash = currentHash;
|
|
252361
252361
|
} else if (!buildDependencies.has(file)) {
|
|
@@ -252390,7 +252390,8 @@ var get_config_exports = {};
|
|
|
252390
252390
|
__export(get_config_exports, {
|
|
252391
252391
|
getConfig: () => getConfig,
|
|
252392
252392
|
legacyConfig: () => legacyConfig,
|
|
252393
|
-
modernConfig: () => modernConfig
|
|
252393
|
+
modernConfig: () => modernConfig,
|
|
252394
|
+
workerConfig: () => workerConfig
|
|
252394
252395
|
});
|
|
252395
252396
|
module.exports = __toCommonJS(get_config_exports);
|
|
252396
252397
|
|
|
@@ -258685,6 +258686,56 @@ function legacyConfig({
|
|
|
258685
258686
|
outExtension
|
|
258686
258687
|
};
|
|
258687
258688
|
}
|
|
258689
|
+
function workerConfig({
|
|
258690
|
+
entry,
|
|
258691
|
+
outDir,
|
|
258692
|
+
projectRoot,
|
|
258693
|
+
workspaceRoot,
|
|
258694
|
+
tsconfig = "tsconfig.json",
|
|
258695
|
+
debug = false,
|
|
258696
|
+
external,
|
|
258697
|
+
banner = {},
|
|
258698
|
+
verbose = false,
|
|
258699
|
+
apiReport = true,
|
|
258700
|
+
docModel = true,
|
|
258701
|
+
tsdocMetadata = true,
|
|
258702
|
+
define: define2,
|
|
258703
|
+
env,
|
|
258704
|
+
options
|
|
258705
|
+
}) {
|
|
258706
|
+
return {
|
|
258707
|
+
name: "worker",
|
|
258708
|
+
entry,
|
|
258709
|
+
format: ["esm"],
|
|
258710
|
+
target: ["chrome95"],
|
|
258711
|
+
tsconfig,
|
|
258712
|
+
projectRoot,
|
|
258713
|
+
workspaceRoot,
|
|
258714
|
+
outDir: (0, import_path2.join)(outDir, "dist", "worker"),
|
|
258715
|
+
silent: !verbose,
|
|
258716
|
+
metafile: true,
|
|
258717
|
+
shims: true,
|
|
258718
|
+
minify: false,
|
|
258719
|
+
external,
|
|
258720
|
+
platform: "browser",
|
|
258721
|
+
banner,
|
|
258722
|
+
define: define2,
|
|
258723
|
+
env,
|
|
258724
|
+
dts: false,
|
|
258725
|
+
experimentalDts: {
|
|
258726
|
+
entry,
|
|
258727
|
+
compilerOptions: {
|
|
258728
|
+
noEmit: false
|
|
258729
|
+
}
|
|
258730
|
+
},
|
|
258731
|
+
apiReport,
|
|
258732
|
+
docModel,
|
|
258733
|
+
tsdocMetadata,
|
|
258734
|
+
sourcemap: debug,
|
|
258735
|
+
clean: false,
|
|
258736
|
+
outExtension
|
|
258737
|
+
};
|
|
258738
|
+
}
|
|
258688
258739
|
function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
258689
258740
|
outputPath,
|
|
258690
258741
|
tsConfig,
|
|
@@ -258722,41 +258773,29 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
258722
258773
|
}
|
|
258723
258774
|
return ret;
|
|
258724
258775
|
}, {});
|
|
258725
|
-
|
|
258726
|
-
|
|
258727
|
-
|
|
258728
|
-
|
|
258729
|
-
|
|
258730
|
-
|
|
258731
|
-
|
|
258732
|
-
|
|
258733
|
-
|
|
258734
|
-
|
|
258735
|
-
|
|
258736
|
-
|
|
258737
|
-
|
|
258738
|
-
|
|
258739
|
-
|
|
258740
|
-
|
|
258741
|
-
|
|
258742
|
-
|
|
258743
|
-
|
|
258744
|
-
|
|
258745
|
-
|
|
258746
|
-
|
|
258747
|
-
|
|
258748
|
-
workspaceRoot,
|
|
258749
|
-
tsconfig: tsConfig,
|
|
258750
|
-
debug,
|
|
258751
|
-
banner,
|
|
258752
|
-
platform,
|
|
258753
|
-
external,
|
|
258754
|
-
verbose,
|
|
258755
|
-
define: define2,
|
|
258756
|
-
env,
|
|
258757
|
-
options
|
|
258758
|
-
})
|
|
258759
|
-
]);
|
|
258776
|
+
const params = {
|
|
258777
|
+
entry,
|
|
258778
|
+
outDir: outputPath,
|
|
258779
|
+
projectRoot,
|
|
258780
|
+
workspaceRoot,
|
|
258781
|
+
tsconfig: tsConfig,
|
|
258782
|
+
debug,
|
|
258783
|
+
banner,
|
|
258784
|
+
platform,
|
|
258785
|
+
external,
|
|
258786
|
+
verbose,
|
|
258787
|
+
apiReport,
|
|
258788
|
+
docModel,
|
|
258789
|
+
tsdocMetadata,
|
|
258790
|
+
define: define2,
|
|
258791
|
+
env,
|
|
258792
|
+
options
|
|
258793
|
+
};
|
|
258794
|
+
const config = [modernConfig(params), legacyConfig(params)];
|
|
258795
|
+
if (platform === "node") {
|
|
258796
|
+
config.push(workerConfig(params));
|
|
258797
|
+
}
|
|
258798
|
+
return (0, import_tsup.defineConfig)(config);
|
|
258760
258799
|
}
|
|
258761
258800
|
var outExtension = ({ options, format, pkgType }) => {
|
|
258762
258801
|
console.log(options);
|
|
@@ -258784,7 +258823,8 @@ var outExtension = ({ options, format, pkgType }) => {
|
|
|
258784
258823
|
0 && (module.exports = {
|
|
258785
258824
|
getConfig,
|
|
258786
258825
|
legacyConfig,
|
|
258787
|
-
modernConfig
|
|
258826
|
+
modernConfig,
|
|
258827
|
+
workerConfig
|
|
258788
258828
|
});
|
|
258789
258829
|
/*! Bundled license information:
|
|
258790
258830
|
|