@storm-software/workspace-tools 1.7.32 → 1.7.34
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 +14 -0
- package/index.js +33 -22
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +33 -22
- package/src/executors/tsup/get-config.js +33 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.7.33](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.32...workspace-tools-v1.7.33) (2023-11-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved bad tsconfig path issue in tsup patch ([564b0b5](https://github.com/storm-software/storm-ops/commit/564b0b5cd054852106328fb047cd77baefea962e))
|
|
7
|
+
|
|
8
|
+
## [1.7.32](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.31...workspace-tools-v1.7.32) (2023-11-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Resolve issue with path library reference in tsup ([9745279](https://github.com/storm-software/storm-ops/commit/974527945816b40c8b210b06b3da16f20cb86dde))
|
|
14
|
+
|
|
1
15
|
## [1.7.31](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.30...workspace-tools-v1.7.31) (2023-11-20)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
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=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/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) {
|
|
@@ -410238,14 +410238,14 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
410238
410238
|
dts: dtsExtension
|
|
410239
410239
|
};
|
|
410240
410240
|
}
|
|
410241
|
-
function ensureTempDeclarationDir() {
|
|
410241
|
+
function ensureTempDeclarationDir(options) {
|
|
410242
410242
|
const cwd = process.cwd();
|
|
410243
|
-
const dirPath = _path2.default.join(cwd, ".tsup", "declaration");
|
|
410243
|
+
const dirPath = _path2.default.join(cwd, "tmp", ".tsup", "declaration");
|
|
410244
410244
|
if (_fs2.default.existsSync(dirPath)) {
|
|
410245
410245
|
return dirPath;
|
|
410246
410246
|
}
|
|
410247
410247
|
_fs2.default.mkdirSync(dirPath, { recursive: true });
|
|
410248
|
-
const gitIgnorePath = _path2.default.join(cwd, ".tsup", ".gitignore");
|
|
410248
|
+
const gitIgnorePath = _path2.default.join(cwd, "tmp", ".tsup", ".gitignore");
|
|
410249
410249
|
writeFileSync(gitIgnorePath, "**/*\n");
|
|
410250
410250
|
return dirPath;
|
|
410251
410251
|
}
|
|
@@ -410320,9 +410320,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
410320
410320
|
}
|
|
410321
410321
|
});
|
|
410322
410322
|
|
|
410323
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410323
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
410324
410324
|
var require_chunk_UIX4URMV = __commonJS({
|
|
410325
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
410325
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
410326
410326
|
"use strict";
|
|
410327
410327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410328
410328
|
function _interopRequireWildcard(obj) {
|
|
@@ -411256,9 +411256,9 @@ var require_dist2 = __commonJS({
|
|
|
411256
411256
|
}
|
|
411257
411257
|
});
|
|
411258
411258
|
|
|
411259
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
411259
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
411260
411260
|
var require_chunk_7G76EW2R = __commonJS({
|
|
411261
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
411261
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
411262
411262
|
"use strict";
|
|
411263
411263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
411264
411264
|
function _interopRequireDefault(obj) {
|
|
@@ -465064,9 +465064,9 @@ var require_chokidar = __commonJS({
|
|
|
465064
465064
|
}
|
|
465065
465065
|
});
|
|
465066
465066
|
|
|
465067
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
465067
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
|
|
465068
465068
|
var require_dist5 = __commonJS({
|
|
465069
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
465069
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=3d47rx4xoopfu7yij3ruwnww54_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
|
|
465070
465070
|
"use strict";
|
|
465071
465071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
465072
465072
|
function _interopRequireDefault(obj) {
|
|
@@ -466759,7 +466759,10 @@ var require_dist5 = __commonJS({
|
|
|
466759
466759
|
target: options.target,
|
|
466760
466760
|
banner,
|
|
466761
466761
|
footer,
|
|
466762
|
-
tsconfig: options.
|
|
466762
|
+
tsconfig: options.tsconfig ? options.tsconfig : options.projectRoot ? _path2.default.join(
|
|
466763
|
+
options.projectRoot,
|
|
466764
|
+
"tsconfig.json"
|
|
466765
|
+
) : "tsconfig.json",
|
|
466763
466766
|
loader: {
|
|
466764
466767
|
".aac": "file",
|
|
466765
466768
|
".css": "file",
|
|
@@ -467251,13 +467254,17 @@ var require_dist5 = __commonJS({
|
|
|
467251
467254
|
return alias;
|
|
467252
467255
|
}
|
|
467253
467256
|
}, _class);
|
|
467254
|
-
function getExports(program, fileMapping) {
|
|
467257
|
+
function getExports(options, program, fileMapping) {
|
|
467255
467258
|
let checker = program.getTypeChecker();
|
|
467256
467259
|
let aliasPool = new AliasPool();
|
|
467257
467260
|
let assignAlias = aliasPool.assign.bind(aliasPool);
|
|
467261
|
+
const packagePath = _path.join(
|
|
467262
|
+
program.getCurrentDirectory(),
|
|
467263
|
+
packageJsonSearch(options.outDir, options.silent, "dts", logger)
|
|
467264
|
+
);
|
|
467265
|
+
logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${packagePath}`);
|
|
467258
467266
|
function extractExports(sourceFileName) {
|
|
467259
|
-
|
|
467260
|
-
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, cwd);
|
|
467267
|
+
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, packagePath);
|
|
467261
467268
|
const sourceFile = program.getSourceFile(sourceFileName);
|
|
467262
467269
|
if (!sourceFile) {
|
|
467263
467270
|
return [];
|
|
@@ -467343,10 +467350,14 @@ var require_dist5 = __commonJS({
|
|
|
467343
467350
|
return fileMapping;
|
|
467344
467351
|
}
|
|
467345
467352
|
function emit(options, compilerOptions, tsconfig) {
|
|
467346
|
-
logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}
|
|
467347
|
-
let rawTsconfig = _bundlerequire.loadTsConfig.call(
|
|
467353
|
+
logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
|
|
467354
|
+
let rawTsconfig = _bundlerequire.loadTsConfig.call(
|
|
467355
|
+
void 0,
|
|
467356
|
+
_path.dirname.call(void 0, tsconfig),
|
|
467357
|
+
_path.basename.call(void 0, tsconfig)
|
|
467358
|
+
);
|
|
467348
467359
|
if (!rawTsconfig) {
|
|
467349
|
-
throw new Error(`Unable to find ${tsconfig || "tsconfig.json"}
|
|
467360
|
+
throw new Error(`Unable to find ${tsconfig || "tsconfig.json"}`);
|
|
467350
467361
|
}
|
|
467351
467362
|
let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
|
|
467352
467363
|
let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
|
|
@@ -467364,7 +467375,7 @@ var require_dist5 = __commonJS({
|
|
|
467364
467375
|
}
|
|
467365
467376
|
},
|
|
467366
467377
|
_typescript2.default.sys,
|
|
467367
|
-
tsconfig ? _path.
|
|
467378
|
+
tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
|
|
467368
467379
|
);
|
|
467369
467380
|
let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
|
|
467370
467381
|
let program = _typescript2.default.createProgram(
|
|
@@ -467373,7 +467384,7 @@ var require_dist5 = __commonJS({
|
|
|
467373
467384
|
host
|
|
467374
467385
|
);
|
|
467375
467386
|
let fileMapping = emitDtsFiles(program, host);
|
|
467376
|
-
return getExports(program, fileMapping);
|
|
467387
|
+
return getExports(options, program, fileMapping);
|
|
467377
467388
|
}
|
|
467378
467389
|
function runTypeScriptCompiler(options) {
|
|
467379
467390
|
try {
|