@storm-software/workspace-tools 1.16.12 → 1.16.14
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 +19 -0
- package/README.md +1 -1
- package/index.js +73 -138
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +73 -138
- package/src/executors/tsup/get-config.js +71 -137
|
@@ -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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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
|
-
|
|
6753
|
-
const dirPath = _path2.default.join(options.workspaceRoot, projectFolder, "tmp", "declarations");
|
|
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(options.workspaceRoot,
|
|
6757
|
+
const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
|
|
6759
6758
|
writeFileSync2(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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/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) {
|
|
@@ -61574,9 +61573,9 @@ var require_chokidar = __commonJS({
|
|
|
61574
61573
|
}
|
|
61575
61574
|
});
|
|
61576
61575
|
|
|
61577
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
61576
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/node_modules/tsup/dist/index.js
|
|
61578
61577
|
var require_dist5 = __commonJS({
|
|
61579
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
61578
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=qxnf7byziqgqhnednmsidq2bie_@microsoft+api-extractor@7.38.3_@swc+core@1._mqsjacg6tchxug6yxrkojdzkhi/node_modules/tsup/dist/index.js"(exports) {
|
|
61580
61579
|
"use strict";
|
|
61581
61580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61582
61581
|
function _interopRequireDefault(obj) {
|
|
@@ -63145,7 +63144,7 @@ var require_dist5 = __commonJS({
|
|
|
63145
63144
|
};
|
|
63146
63145
|
var generateExternal = async (external, options, logger3) => {
|
|
63147
63146
|
const result = [];
|
|
63148
|
-
const pkgJsonPath =
|
|
63147
|
+
const pkgJsonPath = packageJsonSearch(options.outDir, options.silent, "CLI", logger3);
|
|
63149
63148
|
for (const item of external) {
|
|
63150
63149
|
if (typeof item !== "string" || !item.endsWith("package.json")) {
|
|
63151
63150
|
result.push(item);
|
|
@@ -63157,7 +63156,7 @@ var require_dist5 = __commonJS({
|
|
|
63157
63156
|
}
|
|
63158
63157
|
return result;
|
|
63159
63158
|
};
|
|
63160
|
-
var
|
|
63159
|
+
var packageJsonSearch = (outDir, silent, format, logger3) => {
|
|
63161
63160
|
let pkgPath = outDir ? outDir : process.cwd();
|
|
63162
63161
|
!silent && logger3 && logger3.info(format, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
|
|
63163
63162
|
if (pkgPath) {
|
|
@@ -63192,7 +63191,7 @@ var require_dist5 = __commonJS({
|
|
|
63192
63191
|
`\u26A1 No package.json file found, using ${pkgPath} as the output directory`
|
|
63193
63192
|
);
|
|
63194
63193
|
}
|
|
63195
|
-
return pkgPath
|
|
63194
|
+
return pkgPath;
|
|
63196
63195
|
};
|
|
63197
63196
|
async function runEsbuild(options, {
|
|
63198
63197
|
format,
|
|
@@ -63201,7 +63200,7 @@ var require_dist5 = __commonJS({
|
|
|
63201
63200
|
buildDependencies,
|
|
63202
63201
|
pluginContainer
|
|
63203
63202
|
}) {
|
|
63204
|
-
const pkgPath =
|
|
63203
|
+
const pkgPath = packageJsonSearch(options.outDir, options.silent, format, logger3);
|
|
63205
63204
|
logger3.info(format, `\u26A1 Running ESBuild: ${pkgPath}`);
|
|
63206
63205
|
const pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
63207
63206
|
const deps = await _chunk7G76EW2Rjs.getProductionDeps.call(void 0, pkgPath);
|
|
@@ -63892,13 +63891,6 @@ var require_dist5 = __commonJS({
|
|
|
63892
63891
|
};
|
|
63893
63892
|
logger.info("tsc", "Build start");
|
|
63894
63893
|
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");
|
|
63902
63894
|
const exports2 = await emit(
|
|
63903
63895
|
options,
|
|
63904
63896
|
dtsOptions.compilerOptions,
|
|
@@ -63943,77 +63935,19 @@ var require_dist5 = __commonJS({
|
|
|
63943
63935
|
throw new Error("Unknown declaration");
|
|
63944
63936
|
}
|
|
63945
63937
|
}
|
|
63946
|
-
|
|
63947
|
-
|
|
63948
|
-
|
|
63949
|
-
|
|
63950
|
-
|
|
63951
|
-
_chunkGQ77QZBOjs.slash.call(
|
|
63952
|
-
void 0,
|
|
63953
|
-
_path2.default.join(options.workspaceRoot, fromFilePath)
|
|
63954
|
-
)
|
|
63955
|
-
)),
|
|
63956
|
-
_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(
|
|
63957
|
-
void 0,
|
|
63958
|
-
_path2.default.join(options.workspaceRoot, toFilePath)
|
|
63959
|
-
))
|
|
63960
|
-
)
|
|
63961
|
-
);
|
|
63962
|
-
if (!importPath.match(/^\.+\//)) {
|
|
63963
|
-
importPath = "./" + importPath;
|
|
63964
|
-
}
|
|
63965
|
-
!options.silent && logger3.info("dts", `\u26A1 Formatting Distribution Exports with Import Path: ${importPath}`);
|
|
63966
|
-
let seen = {
|
|
63967
|
-
named: /* @__PURE__ */ new Set(),
|
|
63968
|
-
module: /* @__PURE__ */ new Set()
|
|
63969
|
-
};
|
|
63970
|
-
const lines = exports2.filter((declaration) => {
|
|
63971
|
-
if (declaration.kind === "module") {
|
|
63972
|
-
if (seen.module.has(declaration.moduleName)) {
|
|
63973
|
-
return false;
|
|
63974
|
-
}
|
|
63975
|
-
seen.module.add(declaration.moduleName);
|
|
63976
|
-
return true;
|
|
63977
|
-
} else if (declaration.kind === "named") {
|
|
63978
|
-
if (seen.named.has(declaration.name)) {
|
|
63979
|
-
return false;
|
|
63980
|
-
}
|
|
63981
|
-
seen.named.add(declaration.name);
|
|
63982
|
-
return true;
|
|
63983
|
-
} else {
|
|
63984
|
-
return false;
|
|
63985
|
-
}
|
|
63986
|
-
}).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
|
|
63987
|
-
if (lines.length === 0) {
|
|
63988
|
-
lines.push("export {};");
|
|
63989
|
-
}
|
|
63990
|
-
return lines.join("\n") + "\n";
|
|
63991
|
-
}
|
|
63992
|
-
function formatDistributionExport(declaration, dest) {
|
|
63993
|
-
if (declaration.kind === "named") {
|
|
63994
|
-
return [
|
|
63995
|
-
"export",
|
|
63996
|
-
declaration.isTypeOnly ? "type" : "",
|
|
63997
|
-
"{",
|
|
63998
|
-
declaration.alias,
|
|
63999
|
-
declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
|
|
64000
|
-
"} from",
|
|
64001
|
-
`'${dest}';`
|
|
64002
|
-
].filter(_chunkGQ77QZBOjs.truthy).join(" ");
|
|
64003
|
-
} else if (declaration.kind === "module") {
|
|
64004
|
-
return `export * from '${declaration.moduleName}';`;
|
|
63938
|
+
var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
63939
|
+
function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
|
|
63940
|
+
let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
63941
|
+
if (pkgPath.endsWith("/")) {
|
|
63942
|
+
pkgPath = pkgPath.slice(0, -1);
|
|
64005
63943
|
}
|
|
64006
|
-
|
|
64007
|
-
|
|
64008
|
-
|
|
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}`);
|
|
64012
|
-
const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
|
|
63944
|
+
logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
|
|
63945
|
+
const apiReferenceProjectDir = _path2.default.join(
|
|
63946
|
+
"<projectFolder>",
|
|
64013
63947
|
"docs",
|
|
64014
63948
|
"api-reports",
|
|
64015
63949
|
options.projectRoot
|
|
64016
|
-
).replaceAll("\\", "/")
|
|
63950
|
+
).replaceAll("\\", "/");
|
|
64017
63951
|
let configObject = {
|
|
64018
63952
|
mainEntryPointFilePath: inputFilePath,
|
|
64019
63953
|
apiReport: {
|
|
@@ -64021,9 +63955,10 @@ var require_dist5 = __commonJS({
|
|
|
64021
63955
|
reportFileName: "api-report.md",
|
|
64022
63956
|
reportFolder: apiReferenceProjectDir,
|
|
64023
63957
|
reportTempFolder: _path2.default.join(
|
|
64024
|
-
|
|
63958
|
+
"<projectFolder>",
|
|
63959
|
+
"tmp",
|
|
64025
63960
|
"api-reports"
|
|
64026
|
-
).replaceAll("
|
|
63961
|
+
).replaceAll("\\", "/")
|
|
64027
63962
|
},
|
|
64028
63963
|
docModel: {
|
|
64029
63964
|
enabled: options.docModel !== false,
|
|
@@ -64034,36 +63969,53 @@ var require_dist5 = __commonJS({
|
|
|
64034
63969
|
},
|
|
64035
63970
|
dtsRollup: {
|
|
64036
63971
|
enabled: true,
|
|
64037
|
-
untrimmedFilePath:
|
|
63972
|
+
untrimmedFilePath: _path2.default.join(
|
|
63973
|
+
"<projectFolder>",
|
|
63974
|
+
options.outDir,
|
|
63975
|
+
`index${dtsExtension}`
|
|
63976
|
+
).replaceAll("\\", "/"),
|
|
63977
|
+
betaTrimmedFilePath: _path2.default.join(
|
|
63978
|
+
"<projectFolder>",
|
|
63979
|
+
options.outDir,
|
|
63980
|
+
"index-beta.d.ts"
|
|
63981
|
+
).replaceAll("\\", "/"),
|
|
63982
|
+
publicTrimmedFilePath: _path2.default.join(
|
|
63983
|
+
"<projectFolder>",
|
|
63984
|
+
options.outDir,
|
|
63985
|
+
"index-public.d.ts"
|
|
63986
|
+
).replaceAll("\\", "/")
|
|
64038
63987
|
},
|
|
64039
63988
|
tsdocMetadata: {
|
|
64040
63989
|
enabled: options.tsdocMetadata !== false,
|
|
64041
|
-
tsdocMetadataFilePath:
|
|
64042
|
-
projectFolder,
|
|
63990
|
+
tsdocMetadataFilePath: _path2.default.join(
|
|
63991
|
+
"<projectFolder>",
|
|
63992
|
+
"dist",
|
|
63993
|
+
options.projectRoot,
|
|
64043
63994
|
"tsdoc-metadata.api.json"
|
|
64044
|
-
).replaceAll("\\", "/")
|
|
63995
|
+
).replaceAll("\\", "/")
|
|
64045
63996
|
},
|
|
64046
63997
|
compiler: {
|
|
64047
63998
|
tsconfigFilePath
|
|
64048
63999
|
},
|
|
64049
|
-
projectFolder:
|
|
64000
|
+
projectFolder: "./"
|
|
64050
64001
|
};
|
|
64051
64002
|
const prepareOptions = {
|
|
64052
64003
|
configObject,
|
|
64053
64004
|
configObjectFullPath: void 0,
|
|
64054
64005
|
packageJsonFullPath: _path2.default.join(
|
|
64055
64006
|
options.workspaceRoot,
|
|
64056
|
-
|
|
64007
|
+
"dist",
|
|
64008
|
+
options.projectRoot,
|
|
64057
64009
|
"package.json"
|
|
64058
|
-
)
|
|
64010
|
+
).replaceAll("\\", "/")
|
|
64059
64011
|
};
|
|
64060
|
-
!options.silent &&
|
|
64061
|
-
!options.silent &&
|
|
64012
|
+
!options.silent && logger2.info("dts", `\u26A1 Current Directory: ${__dirname}`);
|
|
64013
|
+
!options.silent && logger2.info(
|
|
64062
64014
|
"dts",
|
|
64063
64015
|
"\u26A1 Running API Extractor with the following config: \n",
|
|
64064
64016
|
prepareOptions
|
|
64065
64017
|
);
|
|
64066
|
-
!options.silent &&
|
|
64018
|
+
!options.silent && logger2.info(
|
|
64067
64019
|
"dts",
|
|
64068
64020
|
"\u26A1 Using the following compiler options: \n",
|
|
64069
64021
|
JSON.stringify(prepareOptions.configObject?.compiler)
|
|
@@ -64076,7 +64028,7 @@ var require_dist5 = __commonJS({
|
|
|
64076
64028
|
}
|
|
64077
64029
|
const { ExtractorConfig, Extractor } = imported;
|
|
64078
64030
|
const extractorConfig = ExtractorConfig.prepare(prepareOptions);
|
|
64079
|
-
!options.silent &&
|
|
64031
|
+
!options.silent && logger2.info(
|
|
64080
64032
|
"dts",
|
|
64081
64033
|
"\u26A1 Invoking extractor with the following prepare options: \n",
|
|
64082
64034
|
JSON.stringify(extractorConfig)
|
|
@@ -64094,51 +64046,33 @@ var require_dist5 = __commonJS({
|
|
|
64094
64046
|
}
|
|
64095
64047
|
}
|
|
64096
64048
|
async function rollupDtsFiles(options, exports2, format) {
|
|
64097
|
-
let
|
|
64049
|
+
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0, options);
|
|
64098
64050
|
let outDir = options.outDir || "dist";
|
|
64099
|
-
let pkgPath =
|
|
64100
|
-
!options.silent &&
|
|
64101
|
-
!options.silent &&
|
|
64051
|
+
let pkgPath = packageJsonSearch(outDir, options.silent, "dts", logger2);
|
|
64052
|
+
!options.silent && logger2.info("dts", `\u26A1 Preparing to run Rollup (DTS generate): ${pkgPath}`);
|
|
64053
|
+
!options.silent && logger2.info("dts", `\u26A1 Exports list to use in generation: ${exports2.map((e) => JSON.stringify(e)).join("\n")}`);
|
|
64102
64054
|
let pkg = await _chunk7G76EW2Rjs.loadPkg.call(void 0, pkgPath);
|
|
64103
64055
|
let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts;
|
|
64104
|
-
let declarationDir = _path2.default.join(tempDir, "declarations");
|
|
64105
64056
|
let dtsInputFilePath = _path2.default.join(
|
|
64106
64057
|
declarationDir,
|
|
64058
|
+
outDir.replace(pkgPath, ""),
|
|
64107
64059
|
"_tsup-dts-aggregation" + dtsExtension
|
|
64108
|
-
);
|
|
64060
|
+
).replaceAll("\\", "/");
|
|
64109
64061
|
dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
|
|
64110
64062
|
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
64111
64063
|
void 0,
|
|
64112
64064
|
dtsInputFilePath,
|
|
64113
64065
|
formatAggregationExports(exports2, declarationDir)
|
|
64114
64066
|
);
|
|
64115
|
-
let dtsOutputFilePath = _path2.default.join(outDir, "declarations" + dtsExtension);
|
|
64116
64067
|
rollupDtsFile(
|
|
64117
64068
|
options,
|
|
64118
|
-
|
|
64119
|
-
|
|
64120
|
-
|
|
64069
|
+
_path2.default.join(
|
|
64070
|
+
"<projectFolder>",
|
|
64071
|
+
dtsInputFilePath.replace(options.workspaceRoot, "")
|
|
64072
|
+
).replaceAll("\\", "/"),
|
|
64073
|
+
dtsExtension,
|
|
64121
64074
|
options.tsconfig || "tsconfig.json"
|
|
64122
64075
|
);
|
|
64123
|
-
for (let [out, sourceFileName] of Object.entries(
|
|
64124
|
-
options.experimentalDts.entry
|
|
64125
|
-
)) {
|
|
64126
|
-
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName).replaceAll("/", "\\");
|
|
64127
|
-
const outFileName = _path2.default.join(
|
|
64128
|
-
options.workspaceRoot,
|
|
64129
|
-
outDir,
|
|
64130
|
-
out + dtsExtension
|
|
64131
|
-
).replaceAll("/", "\\");
|
|
64132
|
-
!options.silent && logger22.info("dts", `\u26A1 Checking exports generation for file: ${outFileName}`);
|
|
64133
|
-
const currentExports = exports2.filter(
|
|
64134
|
-
(declaration) => declaration.sourceFileName.replaceAll("/", "\\") === sourceFileName.replaceAll("/", "\\")
|
|
64135
|
-
);
|
|
64136
|
-
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
64137
|
-
void 0,
|
|
64138
|
-
outFileName,
|
|
64139
|
-
formatDistributionExports(currentExports, outFileName, dtsOutputFilePath, logger22, options)
|
|
64140
|
-
);
|
|
64141
|
-
}
|
|
64142
64076
|
}
|
|
64143
64077
|
async function runDtsRollup(options, exports2) {
|
|
64144
64078
|
try {
|
|
@@ -64146,17 +64080,17 @@ var require_dist5 = __commonJS({
|
|
|
64146
64080
|
const getDuration = () => {
|
|
64147
64081
|
return `${Math.floor(Date.now() - start)}ms`;
|
|
64148
64082
|
};
|
|
64149
|
-
|
|
64083
|
+
logger2.info("dts", "Build start");
|
|
64150
64084
|
if (!exports2) {
|
|
64151
64085
|
throw new Error("Unexpected internal error: dts exports is not define");
|
|
64152
64086
|
}
|
|
64153
64087
|
for (const format of options.format) {
|
|
64154
64088
|
await rollupDtsFiles(options, exports2, format);
|
|
64155
64089
|
}
|
|
64156
|
-
|
|
64090
|
+
logger2.success("dts", `\u26A1\uFE0F Build success in ${getDuration()}`);
|
|
64157
64091
|
} catch (error) {
|
|
64158
64092
|
_chunkUIX4URMVjs.handleError.call(void 0, error);
|
|
64159
|
-
|
|
64093
|
+
logger2.error("dts", "Build error");
|
|
64160
64094
|
}
|
|
64161
64095
|
}
|
|
64162
64096
|
var cjsInterop = () => {
|
|
@@ -64223,7 +64157,7 @@ var require_dist5 = __commonJS({
|
|
|
64223
64157
|
options.entry = entry;
|
|
64224
64158
|
logger3.info("CLI", `Building entry: ${JSON.stringify(entry)}`);
|
|
64225
64159
|
}
|
|
64226
|
-
!options.silent &&
|
|
64160
|
+
!options.silent && logger2.info("CLI", `\u26A1 Normalizing options: ${options.tsconfig}`);
|
|
64227
64161
|
const tsconfig = _bundlerequire.loadTsConfig.call(void 0, options.workspaceRoot, options.tsconfig);
|
|
64228
64162
|
if (tsconfig) {
|
|
64229
64163
|
logger3.info(
|