From e1eb17ad73d316064a58c714230e2de35fdf52bc Mon Sep 17 00:00:00 2001 From: hh Date: Wed, 26 Jun 2024 23:48:26 +0800 Subject: [PATCH 1/2] use tsc --- src/lib/compile.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/compile.js b/src/lib/compile.js index 3583283..47a05cc 100644 --- a/src/lib/compile.js +++ b/src/lib/compile.js @@ -112,21 +112,21 @@ async function compile({ include, exclude, tsconfig, watch, noArtifact, asm }) { process.exit(); }); - let ts_patch_path = require.resolve("ts-patch").split(path.sep); + let ts_patch_path = require.resolve("typescript").split(path.sep); - ts_patch_path = ts_patch_path.slice(0, ts_patch_path.length - 1); + ts_patch_path = ts_patch_path.slice(0, ts_patch_path.length - 2); ts_patch_path.push("bin") - ts_patch_path.push("tspc") + ts_patch_path.push("tsc") - const tspc = ts_patch_path.join(path.sep) + const tsc = ts_patch_path.join(path.sep) // Run tsc which in turn also transpiles to sCrypt if (watch) { - await shExec(`node "${tspc}" --watch --p "${tsconfigScryptTSPath}"`) + await shExec(`node "${tsc}" --watch --p "${tsconfigScryptTSPath}"`) } else { const result = await stepCmd( 'Building TS', - `node "${tspc}" --p "${tsconfigScryptTSPath}"`, false); + `node "${tsc}" --p "${tsconfigScryptTSPath}"`, false); if (result instanceof Error) { console.log(red(`ERROR: Building TS failed!`)); From 8ffd09d28fadbd600b07e2a14a828f937bc53d86 Mon Sep 17 00:00:00 2001 From: hh Date: Wed, 26 Jun 2024 23:49:41 +0800 Subject: [PATCH 2/2] pump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4ea66ae..df58120 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "scrypt-cli", - "version": "0.1.76", + "version": "0.1.77", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "scrypt-cli", - "version": "0.1.76", + "version": "0.1.77", "license": "MIT", "dependencies": { "axios": "^1.3.6", diff --git a/package.json b/package.json index e171019..0954185 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scrypt-cli", - "version": "0.1.76", + "version": "0.1.77", "description": "CLI tool for creating and managing sCrypt projects.", "bin": { "scrypt": "./src/bin/index.js",