From 57f569aba35e5fe7f8ae5e9e7cb680fad5c50d05 Mon Sep 17 00:00:00 2001 From: RigobertoM29 Date: Tue, 12 Dec 2023 17:14:34 -0800 Subject: [PATCH] compile ts before running tests --- package.json | 2 +- tsconfig.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5f97868..74de367 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "install": "yarn workspaces -pt run install", "build": "yarn workspaces -pt run build", "postinstall": "cargo install --path ./packages/compiler", - "test": "yarn workspaces -pt run test", + "test": "npx tsc && yarn workspaces -pt run test", "upload-binary": "yarn workspaces -pt run upload-binary" }, "repository": { diff --git a/tsconfig.json b/tsconfig.json index 795450d..2955be6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ // Visit https://aka.ms/tsconfig.json for all config options { "compilerOptions": { - "target": "ES2020", + "target": "ES2021", "module": "commonjs", "strict": true, "resolveJsonModule": true, @@ -11,6 +11,7 @@ }, "include": [ "./scripts", - "./test" + "./test", + "./packages/compiler/src" ] } \ No newline at end of file