@fireproof/core-cli 0.23.15-dev-windows-1 → 0.23.15-dev-windows-2
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/package.json +5 -5
- package/tsc-cmd.js +10 -2
- package/tsc-cmd.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fireproof/core-cli",
|
|
3
|
-
"version": "0.23.15-dev-windows-
|
|
3
|
+
"version": "0.23.15-dev-windows-2",
|
|
4
4
|
"description": "Live ledger for the web.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./run.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@typescript/native-preview": "7.0.0-dev.20251009.1",
|
|
35
35
|
"@adviser/cement": "^0.4.43",
|
|
36
|
-
"@fireproof/core-runtime": "0.23.15-dev-windows-
|
|
37
|
-
"@fireproof/core-types-base": "0.23.15-dev-windows-
|
|
38
|
-
"@fireproof/vendor": "0.23.15-dev-windows-
|
|
36
|
+
"@fireproof/core-runtime": "0.23.15-dev-windows-2",
|
|
37
|
+
"@fireproof/core-types-base": "0.23.15-dev-windows-2",
|
|
38
|
+
"@fireproof/vendor": "0.23.15-dev-windows-2",
|
|
39
39
|
"aws4fetch": "^1.0.20",
|
|
40
40
|
"cmd-ts": "^0.14.2",
|
|
41
41
|
"find-up": "^8.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"zx": "^8.8.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@fireproof/core-cli": "0.23.15-dev-windows-
|
|
49
|
+
"@fireproof/core-cli": "0.23.15-dev-windows-2",
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|
|
51
51
|
"@types/semver": "^7.7.1",
|
|
52
52
|
"tsx": "^4.20.4",
|
package/tsc-cmd.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { command, flag } from "cmd-ts";
|
|
2
|
-
import {
|
|
2
|
+
import { $, quotePowerShell } from "zx";
|
|
3
|
+
function isPowerShell() {
|
|
4
|
+
const psModulePath = process.env.PSModulePath;
|
|
5
|
+
const psExecutionPolicyPreference = process.env.PSExecutionPolicyPreference;
|
|
6
|
+
return !!(psModulePath || psExecutionPolicyPreference);
|
|
7
|
+
}
|
|
3
8
|
export async function handleTsc(args, sthis) {
|
|
4
9
|
const tsc = sthis.env.get("FP_TSC") ?? "tsgo";
|
|
5
10
|
const cmd = [tsc, ...args];
|
|
6
|
-
console.log(`Using typescript: ${cmd}`);
|
|
11
|
+
console.log(`Using typescript: ${cmd} on ${isPowerShell() ? "PowerShell" : "Unix shell"}`);
|
|
12
|
+
if (isPowerShell()) {
|
|
13
|
+
$.quote = quotePowerShell;
|
|
14
|
+
}
|
|
7
15
|
$.verbose = false;
|
|
8
16
|
const p = $({ stdio: ["inherit", "inherit", "inherit"] }) `${cmd}`;
|
|
9
17
|
await p;
|
package/tsc-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsc-cmd.js","sourceRoot":"","sources":["../jsr/tsc-cmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tsc-cmd.js","sourceRoot":"","sources":["../jsr/tsc-cmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EAAE,CAAC,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAExC,SAAS,YAAY;IAEnB,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAC9C,MAAM,2BAA2B,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;I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