From c4c675d813fbffc15ee8f69dcbcc97464c9f9135 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 13 May 2024 18:13:22 +0900 Subject: [PATCH] Ensure to transpile typescript before used --- .github/workflows/check.yaml | 2 -- .github/workflows/release.yaml | 2 -- package.json | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 3cfcba9..1f7102f 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -28,8 +28,6 @@ jobs: - name: Install dependencies run: npm ci --ignore-scripts - - run: npx tsc - - name: Run dummy tests run: xvfb-run -a npm test continue-on-error: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 92bd1b7..5a3a21e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,8 +25,6 @@ jobs: - name: Install dependencies run: npm ci --ignore-scripts - - run: npx tsc - - name: Make sure to be possible to create package run: npx vsce package --out 'yamlfmt.vsix' diff --git a/package.json b/package.json index 3611652..62ae611 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,9 @@ }, "scripts": { "lint": "dprint check && deno lint", + "prepackage": "tsc", + "package": "vsce package --out 'yamlfmt.vsix'", + "pretest": "tsc", "test": "node ./test/runTest.js" }, "devDependencies": {