@storm-software/workspace-tools 1.16.11 → 1.16.12
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/README.md +1 -1
- package/index.js +47 -39
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +47 -39
- package/src/executors/tsup/get-config.js +46 -37
package/package.json
CHANGED
|
@@ -40019,9 +40019,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
40019
40019
|
}
|
|
40020
40020
|
});
|
|
40021
40021
|
|
|
40022
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40022
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
40023
40023
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
40024
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40024
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
40025
40025
|
"use strict";
|
|
40026
40026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40027
40027
|
var version = "8.0.0";
|
|
@@ -40481,9 +40481,9 @@ var require_resolve_from = __commonJS({
|
|
|
40481
40481
|
}
|
|
40482
40482
|
});
|
|
40483
40483
|
|
|
40484
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40484
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
40485
40485
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
40486
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40486
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
40487
40487
|
"use strict";
|
|
40488
40488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40489
40489
|
function _interopRequireDefault(obj) {
|
|
@@ -40681,12 +40681,13 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40681
40681
|
};
|
|
40682
40682
|
}
|
|
40683
40683
|
function ensureTempDeclarationDir(options) {
|
|
40684
|
-
|
|
40684
|
+
let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
40685
|
+
const dirPath = _path2.default.join(options.workspaceRoot, projectFolder, "tmp", "declarations");
|
|
40685
40686
|
if (_fs2.default.existsSync(dirPath)) {
|
|
40686
40687
|
return dirPath;
|
|
40687
40688
|
}
|
|
40688
40689
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
40689
|
-
const gitIgnorePath = _path2.default.join(options.workspaceRoot,
|
|
40690
|
+
const gitIgnorePath = _path2.default.join(options.workspaceRoot, projectFolder, "tmp", ".gitignore");
|
|
40690
40691
|
writeFileSync3(gitIgnorePath, "**/*\n");
|
|
40691
40692
|
return dirPath;
|
|
40692
40693
|
}
|
|
@@ -40761,9 +40762,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40761
40762
|
}
|
|
40762
40763
|
});
|
|
40763
40764
|
|
|
40764
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40765
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
40765
40766
|
var require_chunk_UIX4URMV = __commonJS({
|
|
40766
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40767
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
40767
40768
|
"use strict";
|
|
40768
40769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40769
40770
|
function _interopRequireWildcard(obj) {
|
|
@@ -41697,9 +41698,9 @@ var require_dist2 = __commonJS({
|
|
|
41697
41698
|
}
|
|
41698
41699
|
});
|
|
41699
41700
|
|
|
41700
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
41701
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
41701
41702
|
var require_chunk_7G76EW2R = __commonJS({
|
|
41702
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
41703
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
41703
41704
|
"use strict";
|
|
41704
41705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41705
41706
|
function _interopRequireDefault(obj) {
|
|
@@ -95505,9 +95506,9 @@ var require_chokidar = __commonJS({
|
|
|
95505
95506
|
}
|
|
95506
95507
|
});
|
|
95507
95508
|
|
|
95508
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
95509
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/index.js
|
|
95509
95510
|
var require_dist5 = __commonJS({
|
|
95510
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
95511
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/index.js"(exports) {
|
|
95511
95512
|
"use strict";
|
|
95512
95513
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95513
95514
|
function _interopRequireDefault(obj) {
|
|
@@ -97076,7 +97077,7 @@ var require_dist5 = __commonJS({
|
|
|
97076
97077
|
};
|
|
97077
97078
|
var generateExternal = async (external, options, logger3) => {
|
|
97078
97079
|
const result = [];
|
|
97079
|
-
const pkgJsonPath =
|
|
97080
|
+
const pkgJsonPath = packageJsonSearch2(options.outDir, options.silent, "CLI", logger3);
|
|
97080
97081
|
for (const item of external) {
|
|
97081
97082
|
if (typeof item !== "string" || !item.endsWith("package.json")) {
|
|
97082
97083
|
result.push(item);
|
|
@@ -97088,7 +97089,7 @@ var require_dist5 = __commonJS({
|
|
|
97088
97089
|
}
|
|
97089
97090
|
return result;
|
|
97090
97091
|
};
|
|
97091
|
-
var
|
|
97092
|
+
var packageJsonSearch2 = (outDir, silent, format2, logger3) => {
|
|
97092
97093
|
let pkgPath = outDir ? outDir : process.cwd();
|
|
97093
97094
|
!silent && logger3 && logger3.info(format2, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
97094
97095
|
if (pkgPath) {
|
|
@@ -97132,7 +97133,7 @@ var require_dist5 = __commonJS({
|
|
|
97132
97133
|
buildDependencies,
|
|
97133
97134
|
pluginContainer
|
|
97134
97135
|
}) {
|
|
97135
|
-
const pkgPath =
|
|
97136
|
+
const pkgPath = packageJsonSearch2(options.outDir, options.silent, format2, logger3);
|
|
97136
97137
|
logger3.info(format2, `\u26A1 Running ESBuild: ${pkgPath}`);
|
|
97137
97138
|
const pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
97138
97139
|
const deps = await _chunk7G76EW2Rjs.getProductionDeps.call(void 0, pkgPath);
|
|
@@ -97823,6 +97824,13 @@ var require_dist5 = __commonJS({
|
|
|
97823
97824
|
};
|
|
97824
97825
|
logger.info("tsc", "Build start");
|
|
97825
97826
|
const dtsOptions = options.experimentalDts;
|
|
97827
|
+
if (!dtsOptions.compilerOptions) {
|
|
97828
|
+
dtsOptions.compilerOptions = {};
|
|
97829
|
+
} else if (!dtsOptions.compilerOptions.options) {
|
|
97830
|
+
dtsOptions.compilerOptions.options = {};
|
|
97831
|
+
}
|
|
97832
|
+
let tempDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
97833
|
+
dtsOptions.compilerOptions.options.declarationDir = _path2.default.join(tempDir, "declarations");
|
|
97826
97834
|
const exports2 = await emit(
|
|
97827
97835
|
options,
|
|
97828
97836
|
dtsOptions.compilerOptions,
|
|
@@ -97929,10 +97937,10 @@ var require_dist5 = __commonJS({
|
|
|
97929
97937
|
}
|
|
97930
97938
|
return "";
|
|
97931
97939
|
}
|
|
97932
|
-
var
|
|
97933
|
-
function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
|
|
97934
|
-
let projectFolder =
|
|
97935
|
-
!options.silent &&
|
|
97940
|
+
var logger22 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
97941
|
+
function rollupDtsFile(options, tmpDirPath, inputFilePath, outputFilePath, tsconfigFilePath) {
|
|
97942
|
+
let projectFolder = packageJsonSearch2(options.outDir, options.silent, "dts", logger22);
|
|
97943
|
+
!options.silent && logger22.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
|
|
97936
97944
|
const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
|
|
97937
97945
|
"docs",
|
|
97938
97946
|
"api-reports",
|
|
@@ -97944,10 +97952,10 @@ var require_dist5 = __commonJS({
|
|
|
97944
97952
|
enabled: options.apiReport !== false,
|
|
97945
97953
|
reportFileName: "api-report.md",
|
|
97946
97954
|
reportFolder: apiReferenceProjectDir,
|
|
97947
|
-
reportTempFolder:
|
|
97948
|
-
|
|
97955
|
+
reportTempFolder: _path2.default.join(
|
|
97956
|
+
tmpDirPath,
|
|
97949
97957
|
"api-reports"
|
|
97950
|
-
).replaceAll("
|
|
97958
|
+
).replaceAll("/", "\\")
|
|
97951
97959
|
},
|
|
97952
97960
|
docModel: {
|
|
97953
97961
|
enabled: options.docModel !== false,
|
|
@@ -97981,13 +97989,13 @@ var require_dist5 = __commonJS({
|
|
|
97981
97989
|
"package.json"
|
|
97982
97990
|
)
|
|
97983
97991
|
};
|
|
97984
|
-
!options.silent &&
|
|
97985
|
-
!options.silent &&
|
|
97992
|
+
!options.silent && logger22.info("dts", `\u26A1 Current Directory: ${__dirname}`);
|
|
97993
|
+
!options.silent && logger22.info(
|
|
97986
97994
|
"dts",
|
|
97987
97995
|
"\u26A1 Running API Extractor with the following config: \n",
|
|
97988
97996
|
prepareOptions
|
|
97989
97997
|
);
|
|
97990
|
-
!options.silent &&
|
|
97998
|
+
!options.silent && logger22.info(
|
|
97991
97999
|
"dts",
|
|
97992
98000
|
"\u26A1 Using the following compiler options: \n",
|
|
97993
98001
|
JSON.stringify(prepareOptions.configObject?.compiler)
|
|
@@ -98000,7 +98008,7 @@ var require_dist5 = __commonJS({
|
|
|
98000
98008
|
}
|
|
98001
98009
|
const { ExtractorConfig, Extractor } = imported;
|
|
98002
98010
|
const extractorConfig = ExtractorConfig.prepare(prepareOptions);
|
|
98003
|
-
!options.silent &&
|
|
98011
|
+
!options.silent && logger22.info(
|
|
98004
98012
|
"dts",
|
|
98005
98013
|
"\u26A1 Invoking extractor with the following prepare options: \n",
|
|
98006
98014
|
JSON.stringify(extractorConfig)
|
|
@@ -98018,16 +98026,16 @@ var require_dist5 = __commonJS({
|
|
|
98018
98026
|
}
|
|
98019
98027
|
}
|
|
98020
98028
|
async function rollupDtsFiles(options, exports2, format2) {
|
|
98021
|
-
let
|
|
98029
|
+
let tempDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
98022
98030
|
let outDir = options.outDir || "dist";
|
|
98023
|
-
let pkgPath =
|
|
98024
|
-
!options.silent &&
|
|
98025
|
-
!options.silent &&
|
|
98031
|
+
let pkgPath = packageJsonSearch2(outDir, options.silent, "dts", logger22);
|
|
98032
|
+
!options.silent && logger22.info("dts", `\u26A1 Preparing to run Rollup (DTS generate): ${pkgPath}`);
|
|
98033
|
+
!options.silent && logger22.info("dts", `\u26A1 Exports list to use in generation: ${exports2.map((e) => JSON.stringify(e)).join("\n")}`);
|
|
98026
98034
|
let pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
98027
98035
|
let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format: format2, pkgType: pkg.type }).dts;
|
|
98036
|
+
let declarationDir = _path2.default.join(tempDir, "declarations");
|
|
98028
98037
|
let dtsInputFilePath = _path2.default.join(
|
|
98029
98038
|
declarationDir,
|
|
98030
|
-
options.projectRoot,
|
|
98031
98039
|
"_tsup-dts-aggregation" + dtsExtension
|
|
98032
98040
|
);
|
|
98033
98041
|
dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
|
|
@@ -98039,6 +98047,7 @@ var require_dist5 = __commonJS({
|
|
|
98039
98047
|
let dtsOutputFilePath = _path2.default.join(outDir, "declarations" + dtsExtension);
|
|
98040
98048
|
rollupDtsFile(
|
|
98041
98049
|
options,
|
|
98050
|
+
tempDir,
|
|
98042
98051
|
dtsInputFilePath,
|
|
98043
98052
|
dtsOutputFilePath,
|
|
98044
98053
|
options.tsconfig || "tsconfig.json"
|
|
@@ -98052,14 +98061,14 @@ var require_dist5 = __commonJS({
|
|
|
98052
98061
|
outDir,
|
|
98053
98062
|
out + dtsExtension
|
|
98054
98063
|
).replaceAll("/", "\\");
|
|
98055
|
-
!options.silent &&
|
|
98064
|
+
!options.silent && logger22.info("dts", `\u26A1 Checking exports generation for file: ${outFileName}`);
|
|
98056
98065
|
const currentExports = exports2.filter(
|
|
98057
98066
|
(declaration) => declaration.sourceFileName.replaceAll("/", "\\") === sourceFileName.replaceAll("/", "\\")
|
|
98058
98067
|
);
|
|
98059
98068
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
98060
98069
|
void 0,
|
|
98061
98070
|
outFileName,
|
|
98062
|
-
formatDistributionExports(currentExports, outFileName, dtsOutputFilePath,
|
|
98071
|
+
formatDistributionExports(currentExports, outFileName, dtsOutputFilePath, logger22, options)
|
|
98063
98072
|
);
|
|
98064
98073
|
}
|
|
98065
98074
|
}
|
|
@@ -98069,17 +98078,17 @@ var require_dist5 = __commonJS({
|
|
|
98069
98078
|
const getDuration = () => {
|
|
98070
98079
|
return `${Math.floor(Date.now() - start)}ms`;
|
|
98071
98080
|
};
|
|
98072
|
-
|
|
98081
|
+
logger22.info("dts", "Build start");
|
|
98073
98082
|
if (!exports2) {
|
|
98074
98083
|
throw new Error("Unexpected internal error: dts exports is not define");
|
|
98075
98084
|
}
|
|
98076
98085
|
for (const format2 of options.format) {
|
|
98077
98086
|
await rollupDtsFiles(options, exports2, format2);
|
|
98078
98087
|
}
|
|
98079
|
-
|
|
98088
|
+
logger22.success("dts", `\u26A1\uFE0F Build success in ${getDuration()}`);
|
|
98080
98089
|
} catch (error) {
|
|
98081
98090
|
_chunkUIX4URMVjs.handleError.call(void 0, error);
|
|
98082
|
-
|
|
98091
|
+
logger22.error("dts", "Build error");
|
|
98083
98092
|
}
|
|
98084
98093
|
}
|
|
98085
98094
|
var cjsInterop = () => {
|
|
@@ -98146,7 +98155,7 @@ var require_dist5 = __commonJS({
|
|
|
98146
98155
|
options.entry = entry;
|
|
98147
98156
|
logger3.info("CLI", `Building entry: ${JSON.stringify(entry)}`);
|
|
98148
98157
|
}
|
|
98149
|
-
!options.silent &&
|
|
98158
|
+
!options.silent && logger22.info("CLI", `\u26A1 Normalizing options: ${options.tsconfig}`);
|
|
98150
98159
|
const tsconfig = _bundlerequire.loadTsConfig.call(void 0, options.workspaceRoot, options.tsconfig);
|
|
98151
98160
|
if (tsconfig) {
|
|
98152
98161
|
logger3.info(
|
|
@@ -105336,8 +105345,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
105336
105345
|
noEmit: false,
|
|
105337
105346
|
declaration: true,
|
|
105338
105347
|
declarationMap: true,
|
|
105339
|
-
emitDeclarationOnly: true
|
|
105340
|
-
declarationDir: (0, import_path3.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
105348
|
+
emitDeclarationOnly: true
|
|
105341
105349
|
}
|
|
105342
105350
|
},
|
|
105343
105351
|
ts.sys,
|
|
@@ -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=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/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=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/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=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/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=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/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,12 +6749,13 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
6749
6749
|
};
|
|
6750
6750
|
}
|
|
6751
6751
|
function ensureTempDeclarationDir(options) {
|
|
6752
|
-
|
|
6752
|
+
let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
6753
|
+
const dirPath = _path2.default.join(options.workspaceRoot, projectFolder, "tmp", "declarations");
|
|
6753
6754
|
if (_fs2.default.existsSync(dirPath)) {
|
|
6754
6755
|
return dirPath;
|
|
6755
6756
|
}
|
|
6756
6757
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
6757
|
-
const gitIgnorePath = _path2.default.join(options.workspaceRoot,
|
|
6758
|
+
const gitIgnorePath = _path2.default.join(options.workspaceRoot, projectFolder, "tmp", ".gitignore");
|
|
6758
6759
|
writeFileSync2(gitIgnorePath, "**/*\n");
|
|
6759
6760
|
return dirPath;
|
|
6760
6761
|
}
|
|
@@ -6829,9 +6830,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
6829
6830
|
}
|
|
6830
6831
|
});
|
|
6831
6832
|
|
|
6832
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6833
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
6833
6834
|
var require_chunk_UIX4URMV = __commonJS({
|
|
6834
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6835
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
6835
6836
|
"use strict";
|
|
6836
6837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6837
6838
|
function _interopRequireWildcard(obj) {
|
|
@@ -7765,9 +7766,9 @@ var require_dist2 = __commonJS({
|
|
|
7765
7766
|
}
|
|
7766
7767
|
});
|
|
7767
7768
|
|
|
7768
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
7769
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
7769
7770
|
var require_chunk_7G76EW2R = __commonJS({
|
|
7770
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
7771
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
7771
7772
|
"use strict";
|
|
7772
7773
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7773
7774
|
function _interopRequireDefault(obj) {
|
|
@@ -61573,9 +61574,9 @@ var require_chokidar = __commonJS({
|
|
|
61573
61574
|
}
|
|
61574
61575
|
});
|
|
61575
61576
|
|
|
61576
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
61577
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/index.js
|
|
61577
61578
|
var require_dist5 = __commonJS({
|
|
61578
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
61579
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=4o7xevcixzlrqw5gm3wlleqhou_@microsoft+api-extractor@7.38.3_@swc+core@1._tguqvnpknvrsonece4nkdclyai/node_modules/tsup/dist/index.js"(exports) {
|
|
61579
61580
|
"use strict";
|
|
61580
61581
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61581
61582
|
function _interopRequireDefault(obj) {
|
|
@@ -63144,7 +63145,7 @@ var require_dist5 = __commonJS({
|
|
|
63144
63145
|
};
|
|
63145
63146
|
var generateExternal = async (external, options, logger3) => {
|
|
63146
63147
|
const result = [];
|
|
63147
|
-
const pkgJsonPath =
|
|
63148
|
+
const pkgJsonPath = packageJsonSearch2(options.outDir, options.silent, "CLI", logger3);
|
|
63148
63149
|
for (const item of external) {
|
|
63149
63150
|
if (typeof item !== "string" || !item.endsWith("package.json")) {
|
|
63150
63151
|
result.push(item);
|
|
@@ -63156,7 +63157,7 @@ var require_dist5 = __commonJS({
|
|
|
63156
63157
|
}
|
|
63157
63158
|
return result;
|
|
63158
63159
|
};
|
|
63159
|
-
var
|
|
63160
|
+
var packageJsonSearch2 = (outDir, silent, format, logger3) => {
|
|
63160
63161
|
let pkgPath = outDir ? outDir : process.cwd();
|
|
63161
63162
|
!silent && logger3 && logger3.info(format, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
63162
63163
|
if (pkgPath) {
|
|
@@ -63200,7 +63201,7 @@ var require_dist5 = __commonJS({
|
|
|
63200
63201
|
buildDependencies,
|
|
63201
63202
|
pluginContainer
|
|
63202
63203
|
}) {
|
|
63203
|
-
const pkgPath =
|
|
63204
|
+
const pkgPath = packageJsonSearch2(options.outDir, options.silent, format, logger3);
|
|
63204
63205
|
logger3.info(format, `\u26A1 Running ESBuild: ${pkgPath}`);
|
|
63205
63206
|
const pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
63206
63207
|
const deps = await _chunk7G76EW2Rjs.getProductionDeps.call(void 0, pkgPath);
|
|
@@ -63891,6 +63892,13 @@ var require_dist5 = __commonJS({
|
|
|
63891
63892
|
};
|
|
63892
63893
|
logger.info("tsc", "Build start");
|
|
63893
63894
|
const dtsOptions = options.experimentalDts;
|
|
63895
|
+
if (!dtsOptions.compilerOptions) {
|
|
63896
|
+
dtsOptions.compilerOptions = {};
|
|
63897
|
+
} else if (!dtsOptions.compilerOptions.options) {
|
|
63898
|
+
dtsOptions.compilerOptions.options = {};
|
|
63899
|
+
}
|
|
63900
|
+
let tempDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
63901
|
+
dtsOptions.compilerOptions.options.declarationDir = _path2.default.join(tempDir, "declarations");
|
|
63894
63902
|
const exports2 = await emit(
|
|
63895
63903
|
options,
|
|
63896
63904
|
dtsOptions.compilerOptions,
|
|
@@ -63997,10 +64005,10 @@ var require_dist5 = __commonJS({
|
|
|
63997
64005
|
}
|
|
63998
64006
|
return "";
|
|
63999
64007
|
}
|
|
64000
|
-
var
|
|
64001
|
-
function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
|
|
64002
|
-
let projectFolder =
|
|
64003
|
-
!options.silent &&
|
|
64008
|
+
var logger22 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
64009
|
+
function rollupDtsFile(options, tmpDirPath, inputFilePath, outputFilePath, tsconfigFilePath) {
|
|
64010
|
+
let projectFolder = packageJsonSearch2(options.outDir, options.silent, "dts", logger22);
|
|
64011
|
+
!options.silent && logger22.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
|
|
64004
64012
|
const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
|
|
64005
64013
|
"docs",
|
|
64006
64014
|
"api-reports",
|
|
@@ -64012,10 +64020,10 @@ var require_dist5 = __commonJS({
|
|
|
64012
64020
|
enabled: options.apiReport !== false,
|
|
64013
64021
|
reportFileName: "api-report.md",
|
|
64014
64022
|
reportFolder: apiReferenceProjectDir,
|
|
64015
|
-
reportTempFolder:
|
|
64016
|
-
|
|
64023
|
+
reportTempFolder: _path2.default.join(
|
|
64024
|
+
tmpDirPath,
|
|
64017
64025
|
"api-reports"
|
|
64018
|
-
).replaceAll("
|
|
64026
|
+
).replaceAll("/", "\\")
|
|
64019
64027
|
},
|
|
64020
64028
|
docModel: {
|
|
64021
64029
|
enabled: options.docModel !== false,
|
|
@@ -64049,13 +64057,13 @@ var require_dist5 = __commonJS({
|
|
|
64049
64057
|
"package.json"
|
|
64050
64058
|
)
|
|
64051
64059
|
};
|
|
64052
|
-
!options.silent &&
|
|
64053
|
-
!options.silent &&
|
|
64060
|
+
!options.silent && logger22.info("dts", `\u26A1 Current Directory: ${__dirname}`);
|
|
64061
|
+
!options.silent && logger22.info(
|
|
64054
64062
|
"dts",
|
|
64055
64063
|
"\u26A1 Running API Extractor with the following config: \n",
|
|
64056
64064
|
prepareOptions
|
|
64057
64065
|
);
|
|
64058
|
-
!options.silent &&
|
|
64066
|
+
!options.silent && logger22.info(
|
|
64059
64067
|
"dts",
|
|
64060
64068
|
"\u26A1 Using the following compiler options: \n",
|
|
64061
64069
|
JSON.stringify(prepareOptions.configObject?.compiler)
|
|
@@ -64068,7 +64076,7 @@ var require_dist5 = __commonJS({
|
|
|
64068
64076
|
}
|
|
64069
64077
|
const { ExtractorConfig, Extractor } = imported;
|
|
64070
64078
|
const extractorConfig = ExtractorConfig.prepare(prepareOptions);
|
|
64071
|
-
!options.silent &&
|
|
64079
|
+
!options.silent && logger22.info(
|
|
64072
64080
|
"dts",
|
|
64073
64081
|
"\u26A1 Invoking extractor with the following prepare options: \n",
|
|
64074
64082
|
JSON.stringify(extractorConfig)
|
|
@@ -64086,16 +64094,16 @@ var require_dist5 = __commonJS({
|
|
|
64086
64094
|
}
|
|
64087
64095
|
}
|
|
64088
64096
|
async function rollupDtsFiles(options, exports2, format) {
|
|
64089
|
-
let
|
|
64097
|
+
let tempDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
64090
64098
|
let outDir = options.outDir || "dist";
|
|
64091
|
-
let pkgPath =
|
|
64092
|
-
!options.silent &&
|
|
64093
|
-
!options.silent &&
|
|
64099
|
+
let pkgPath = packageJsonSearch2(outDir, options.silent, "dts", logger22);
|
|
64100
|
+
!options.silent && logger22.info("dts", `\u26A1 Preparing to run Rollup (DTS generate): ${pkgPath}`);
|
|
64101
|
+
!options.silent && logger22.info("dts", `\u26A1 Exports list to use in generation: ${exports2.map((e) => JSON.stringify(e)).join("\n")}`);
|
|
64094
64102
|
let pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
64095
64103
|
let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts;
|
|
64104
|
+
let declarationDir = _path2.default.join(tempDir, "declarations");
|
|
64096
64105
|
let dtsInputFilePath = _path2.default.join(
|
|
64097
64106
|
declarationDir,
|
|
64098
|
-
options.projectRoot,
|
|
64099
64107
|
"_tsup-dts-aggregation" + dtsExtension
|
|
64100
64108
|
);
|
|
64101
64109
|
dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
|
|
@@ -64107,6 +64115,7 @@ var require_dist5 = __commonJS({
|
|
|
64107
64115
|
let dtsOutputFilePath = _path2.default.join(outDir, "declarations" + dtsExtension);
|
|
64108
64116
|
rollupDtsFile(
|
|
64109
64117
|
options,
|
|
64118
|
+
tempDir,
|
|
64110
64119
|
dtsInputFilePath,
|
|
64111
64120
|
dtsOutputFilePath,
|
|
64112
64121
|
options.tsconfig || "tsconfig.json"
|
|
@@ -64120,14 +64129,14 @@ var require_dist5 = __commonJS({
|
|
|
64120
64129
|
outDir,
|
|
64121
64130
|
out + dtsExtension
|
|
64122
64131
|
).replaceAll("/", "\\");
|
|
64123
|
-
!options.silent &&
|
|
64132
|
+
!options.silent && logger22.info("dts", `\u26A1 Checking exports generation for file: ${outFileName}`);
|
|
64124
64133
|
const currentExports = exports2.filter(
|
|
64125
64134
|
(declaration) => declaration.sourceFileName.replaceAll("/", "\\") === sourceFileName.replaceAll("/", "\\")
|
|
64126
64135
|
);
|
|
64127
64136
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
64128
64137
|
void 0,
|
|
64129
64138
|
outFileName,
|
|
64130
|
-
formatDistributionExports(currentExports, outFileName, dtsOutputFilePath,
|
|
64139
|
+
formatDistributionExports(currentExports, outFileName, dtsOutputFilePath, logger22, options)
|
|
64131
64140
|
);
|
|
64132
64141
|
}
|
|
64133
64142
|
}
|
|
@@ -64137,17 +64146,17 @@ var require_dist5 = __commonJS({
|
|
|
64137
64146
|
const getDuration = () => {
|
|
64138
64147
|
return `${Math.floor(Date.now() - start)}ms`;
|
|
64139
64148
|
};
|
|
64140
|
-
|
|
64149
|
+
logger22.info("dts", "Build start");
|
|
64141
64150
|
if (!exports2) {
|
|
64142
64151
|
throw new Error("Unexpected internal error: dts exports is not define");
|
|
64143
64152
|
}
|
|
64144
64153
|
for (const format of options.format) {
|
|
64145
64154
|
await rollupDtsFiles(options, exports2, format);
|
|
64146
64155
|
}
|
|
64147
|
-
|
|
64156
|
+
logger22.success("dts", `\u26A1\uFE0F Build success in ${getDuration()}`);
|
|
64148
64157
|
} catch (error) {
|
|
64149
64158
|
_chunkUIX4URMVjs.handleError.call(void 0, error);
|
|
64150
|
-
|
|
64159
|
+
logger22.error("dts", "Build error");
|
|
64151
64160
|
}
|
|
64152
64161
|
}
|
|
64153
64162
|
var cjsInterop = () => {
|
|
@@ -64214,7 +64223,7 @@ var require_dist5 = __commonJS({
|
|
|
64214
64223
|
options.entry = entry;
|
|
64215
64224
|
logger3.info("CLI", `Building entry: ${JSON.stringify(entry)}`);
|
|
64216
64225
|
}
|
|
64217
|
-
!options.silent &&
|
|
64226
|
+
!options.silent && logger22.info("CLI", `\u26A1 Normalizing options: ${options.tsconfig}`);
|
|
64218
64227
|
const tsconfig = _bundlerequire.loadTsConfig.call(void 0, options.workspaceRoot, options.tsconfig);
|
|
64219
64228
|
if (tsconfig) {
|
|
64220
64229
|
logger3.info(
|