From 76edd22586963ebb4e36bca534bb5c5089bf0596 Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Thu, 18 Jan 2024 13:21:51 -0600 Subject: [PATCH] remove swc --- package-lock.json | 21 ++++++++++++++++++--- package.json | 1 - src/compiler/compile_typescript_code.ts | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3e5345809e..4dc79042bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "dependencies": { "@dfinity/candid": "github:demergent-labs/candid#minimum_viable", "@dfinity/principal": "^0.19.3", - "@swc/core": "^1.3.86", "@types/uuid": "^9.0.4", "buffer": "^6.0.3", "esbuild": "^0.19.3", @@ -488,6 +487,8 @@ "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.92.tgz", "integrity": "sha512-vx0vUrf4YTEw59njOJ46Ha5i0cZTMYdRHQ7KXU29efN1MxcmJH2RajWLPlvQarOP1ab9iv9cApD7SMchDyx2vA==", "hasInstallScript": true, + "optional": true, + "peer": true, "dependencies": { "@swc/counter": "^0.1.1", "@swc/types": "^0.1.5" @@ -531,6 +532,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=10" } @@ -546,6 +548,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=10" } @@ -561,6 +564,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -576,6 +580,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -591,6 +596,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -606,6 +612,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -621,6 +628,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=10" } @@ -636,6 +644,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -651,6 +660,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -666,6 +676,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=10" } @@ -673,12 +684,16 @@ "node_modules/@swc/counter": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.2.tgz", - "integrity": "sha512-9F4ys4C74eSTEUNndnER3VJ15oru2NumfQxS8geE+f3eB5xvfxpWyqE5XlVnxb/R14uoXi6SLbBwwiDSkv+XEw==" + "integrity": "sha512-9F4ys4C74eSTEUNndnER3VJ15oru2NumfQxS8geE+f3eB5xvfxpWyqE5XlVnxb/R14uoXi6SLbBwwiDSkv+XEw==", + "optional": true, + "peer": true }, "node_modules/@swc/types": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", - "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==" + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "optional": true, + "peer": true }, "node_modules/@tsconfig/node10": { "version": "1.0.9", diff --git a/package.json b/package.json index b4f14aed11..f3dac6afd4 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "dependencies": { "@dfinity/candid": "github:demergent-labs/candid#minimum_viable", "@dfinity/principal": "^0.19.3", - "@swc/core": "^1.3.86", "@types/uuid": "^9.0.4", "buffer": "^6.0.3", "esbuild": "^0.19.3", diff --git a/src/compiler/compile_typescript_code.ts b/src/compiler/compile_typescript_code.ts index 035e7c1d46..c87613f854 100644 --- a/src/compiler/compile_typescript_code.ts +++ b/src/compiler/compile_typescript_code.ts @@ -1,5 +1,5 @@ import { buildSync } from 'esbuild'; -import { JSCanisterConfig, JavaScript, TypeScript } from './utils/types'; +import { JavaScript, TypeScript } from './utils/types'; import { Result } from './utils/result'; import { GLOBAL_AZLE_WASMEDGE_QUICKJS_DIR } from './utils/global_paths';