@storm-software/workspace-tools 1.13.3 → 1.13.4
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 +22 -17
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +24 -21
- package/src/executors/tsup/get-config.js +24 -21
- package/src/utils/index.js +2 -4
package/package.json
CHANGED
|
@@ -37426,9 +37426,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
37426
37426
|
}
|
|
37427
37427
|
});
|
|
37428
37428
|
|
|
37429
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
37429
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
37430
37430
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
37431
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
37431
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
37432
37432
|
"use strict";
|
|
37433
37433
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37434
37434
|
var version = "8.0.0";
|
|
@@ -39075,9 +39075,9 @@ var require_resolve_from = __commonJS({
|
|
|
39075
39075
|
}
|
|
39076
39076
|
});
|
|
39077
39077
|
|
|
39078
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
39078
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
39079
39079
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
39080
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
39080
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
39081
39081
|
"use strict";
|
|
39082
39082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39083
39083
|
function _interopRequireDefault(obj) {
|
|
@@ -39355,9 +39355,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
39355
39355
|
}
|
|
39356
39356
|
});
|
|
39357
39357
|
|
|
39358
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
39358
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
39359
39359
|
var require_chunk_UIX4URMV = __commonJS({
|
|
39360
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
39360
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
39361
39361
|
"use strict";
|
|
39362
39362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39363
39363
|
function _interopRequireWildcard(obj) {
|
|
@@ -40291,9 +40291,9 @@ var require_dist2 = __commonJS({
|
|
|
40291
40291
|
}
|
|
40292
40292
|
});
|
|
40293
40293
|
|
|
40294
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40294
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
40295
40295
|
var require_chunk_7G76EW2R = __commonJS({
|
|
40296
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40296
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
40297
40297
|
"use strict";
|
|
40298
40298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40299
40299
|
function _interopRequireDefault(obj) {
|
|
@@ -95291,9 +95291,9 @@ var require_chokidar = __commonJS({
|
|
|
95291
95291
|
}
|
|
95292
95292
|
});
|
|
95293
95293
|
|
|
95294
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
95294
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/index.js
|
|
95295
95295
|
var require_dist6 = __commonJS({
|
|
95296
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
95296
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/index.js"(exports) {
|
|
95297
95297
|
"use strict";
|
|
95298
95298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95299
95299
|
function _interopRequireDefault(obj) {
|
|
@@ -97582,12 +97582,17 @@ var require_dist6 = __commonJS({
|
|
|
97582
97582
|
}
|
|
97583
97583
|
return fileMapping;
|
|
97584
97584
|
}
|
|
97585
|
-
var
|
|
97586
|
-
|
|
97587
|
-
return _fs2.default.
|
|
97585
|
+
var getFile = (name, logger3) => {
|
|
97586
|
+
logger3.info("tsc", `Reading file content for: ${name}`);
|
|
97587
|
+
return _fs2.default.promises.readFile(name, "utf8");
|
|
97588
97588
|
};
|
|
97589
|
-
var
|
|
97590
|
-
|
|
97589
|
+
var addFile = async (name, map, options, logger3) => {
|
|
97590
|
+
const file = await getFile(name, logger3);
|
|
97591
|
+
map.set(name, file);
|
|
97592
|
+
if (name.includes(options.workspaceRoot)) {
|
|
97593
|
+
const relativeName = _path.relative(options.workspaceRoot, name);
|
|
97594
|
+
map.set(relativeName.startsWith("/") ? relativeName : `/${relativeName}`, file);
|
|
97595
|
+
}
|
|
97591
97596
|
};
|
|
97592
97597
|
async function emit(options, compilerOptions, tsconfig) {
|
|
97593
97598
|
logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
|
|
@@ -97655,8 +97660,8 @@ var require_dist6 = __commonJS({
|
|
|
97655
97660
|
options.tsCdnStorage
|
|
97656
97661
|
);
|
|
97657
97662
|
logger.info("tsc", "Created FS Map");
|
|
97658
|
-
parsedTsconfig.
|
|
97659
|
-
logger.info("tsc", "Added
|
|
97663
|
+
await Promise.all(parsedTsconfig.fileNames.map((fileName) => addFile(fileName, fsMap, options, logger)));
|
|
97664
|
+
logger.info("tsc", "Added files to FS Map");
|
|
97660
97665
|
const system = _tsvfs2.createSystem(fsMap);
|
|
97661
97666
|
logger.info("tsc", "Created virtual file system");
|
|
97662
97667
|
const host = _tsvfs2.createVirtualCompilerHost(
|
|
@@ -104611,8 +104616,7 @@ var WorkspaceStorage = class {
|
|
|
104611
104616
|
* @param value - The value to set
|
|
104612
104617
|
*/
|
|
104613
104618
|
setItem(key, value) {
|
|
104614
|
-
|
|
104615
|
-
(0, import_node_fs2.writeFileSync)(cacheFile, value);
|
|
104619
|
+
(0, import_node_fs2.writeFileSync)((0, import_node_path2.join)(this.cacheDir, key), value, { encoding: "utf-8" });
|
|
104616
104620
|
}
|
|
104617
104621
|
/**
|
|
104618
104622
|
* Remove item from cache
|
|
@@ -104620,8 +104624,7 @@ var WorkspaceStorage = class {
|
|
|
104620
104624
|
* @param key - The key to remove
|
|
104621
104625
|
*/
|
|
104622
104626
|
removeItem(key) {
|
|
104623
|
-
|
|
104624
|
-
(0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
|
|
104627
|
+
(0, import_node_fs2.rmSync)((0, import_node_path2.join)(this.cacheDir, key), { force: true, recursive: true });
|
|
104625
104628
|
}
|
|
104626
104629
|
/**
|
|
104627
104630
|
* Clear the cache
|
|
@@ -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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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) {
|
|
@@ -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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/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=fsgweckn6ov6eg226naxaqjjee_@microsoft+api-extractor@7.38.3_@swc+core@1._pm5h6fiqvwupmql5x3ui4lbyxa/node_modules/tsup/dist/index.js"(exports) {
|
|
62771
62771
|
"use strict";
|
|
62772
62772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62773
62773
|
function _interopRequireDefault(obj) {
|
|
@@ -65056,12 +65056,17 @@ var require_dist6 = __commonJS({
|
|
|
65056
65056
|
}
|
|
65057
65057
|
return fileMapping;
|
|
65058
65058
|
}
|
|
65059
|
-
var
|
|
65060
|
-
|
|
65061
|
-
return _fs2.default.
|
|
65059
|
+
var getFile = (name, logger3) => {
|
|
65060
|
+
logger3.info("tsc", `Reading file content for: ${name}`);
|
|
65061
|
+
return _fs2.default.promises.readFile(name, "utf8");
|
|
65062
65062
|
};
|
|
65063
|
-
var
|
|
65064
|
-
|
|
65063
|
+
var addFile = async (name, map, options, logger3) => {
|
|
65064
|
+
const file = await getFile(name, logger3);
|
|
65065
|
+
map.set(name, file);
|
|
65066
|
+
if (name.includes(options.workspaceRoot)) {
|
|
65067
|
+
const relativeName = _path.relative(options.workspaceRoot, name);
|
|
65068
|
+
map.set(relativeName.startsWith("/") ? relativeName : `/${relativeName}`, file);
|
|
65069
|
+
}
|
|
65065
65070
|
};
|
|
65066
65071
|
async function emit(options, compilerOptions, tsconfig) {
|
|
65067
65072
|
logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
|
|
@@ -65129,8 +65134,8 @@ var require_dist6 = __commonJS({
|
|
|
65129
65134
|
options.tsCdnStorage
|
|
65130
65135
|
);
|
|
65131
65136
|
logger.info("tsc", "Created FS Map");
|
|
65132
|
-
parsedTsconfig.
|
|
65133
|
-
logger.info("tsc", "Added
|
|
65137
|
+
await Promise.all(parsedTsconfig.fileNames.map((fileName) => addFile(fileName, fsMap, options, logger)));
|
|
65138
|
+
logger.info("tsc", "Added files to FS Map");
|
|
65134
65139
|
const system = _tsvfs2.createSystem(fsMap);
|
|
65135
65140
|
logger.info("tsc", "Created virtual file system");
|
|
65136
65141
|
const host = _tsvfs2.createVirtualCompilerHost(
|
|
@@ -72038,8 +72043,7 @@ var WorkspaceStorage = class {
|
|
|
72038
72043
|
* @param value - The value to set
|
|
72039
72044
|
*/
|
|
72040
72045
|
setItem(key, value) {
|
|
72041
|
-
|
|
72042
|
-
(0, import_node_fs2.writeFileSync)(cacheFile, value);
|
|
72046
|
+
(0, import_node_fs2.writeFileSync)((0, import_node_path2.join)(this.cacheDir, key), value, { encoding: "utf-8" });
|
|
72043
72047
|
}
|
|
72044
72048
|
/**
|
|
72045
72049
|
* Remove item from cache
|
|
@@ -72047,8 +72051,7 @@ var WorkspaceStorage = class {
|
|
|
72047
72051
|
* @param key - The key to remove
|
|
72048
72052
|
*/
|
|
72049
72053
|
removeItem(key) {
|
|
72050
|
-
|
|
72051
|
-
(0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
|
|
72054
|
+
(0, import_node_fs2.rmSync)((0, import_node_path2.join)(this.cacheDir, key), { force: true, recursive: true });
|
|
72052
72055
|
}
|
|
72053
72056
|
/**
|
|
72054
72057
|
* Clear the cache
|
package/src/utils/index.js
CHANGED
|
@@ -210,8 +210,7 @@ var WorkspaceStorage = class {
|
|
|
210
210
|
* @param value - The value to set
|
|
211
211
|
*/
|
|
212
212
|
setItem(key, value) {
|
|
213
|
-
|
|
214
|
-
(0, import_node_fs2.writeFileSync)(cacheFile, value);
|
|
213
|
+
(0, import_node_fs2.writeFileSync)((0, import_node_path3.join)(this.cacheDir, key), value, { encoding: "utf-8" });
|
|
215
214
|
}
|
|
216
215
|
/**
|
|
217
216
|
* Remove item from cache
|
|
@@ -219,8 +218,7 @@ var WorkspaceStorage = class {
|
|
|
219
218
|
* @param key - The key to remove
|
|
220
219
|
*/
|
|
221
220
|
removeItem(key) {
|
|
222
|
-
|
|
223
|
-
(0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
|
|
221
|
+
(0, import_node_fs2.rmSync)((0, import_node_path3.join)(this.cacheDir, key), { force: true, recursive: true });
|
|
224
222
|
}
|
|
225
223
|
/**
|
|
226
224
|
* Clear the cache
|