From b04bd71130c8cfa787605393dc0126c325c567a1 Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 21 Sep 2023 15:09:23 +0800 Subject: [PATCH] [WIP] --- .github/workflows/test.yaml | 3 --- cxx-parser/package.json | 4 ++++ terra-core/package.json | 14 +++++++++----- terra/package.json | 6 ++++-- tsconfig.json | 1 - 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 142f82e..e675ca1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,7 +20,4 @@ jobs: scope: "@agoraio-extensions" - name: Run unit test - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: bash tool/run_ut.sh diff --git a/cxx-parser/package.json b/cxx-parser/package.json index 84b187f..d4d11cd 100644 --- a/cxx-parser/package.json +++ b/cxx-parser/package.json @@ -4,6 +4,10 @@ "main": "src/index", "author": "", "license": "ISC", + "scripts": { + "build": "tsc", + "test": "jest --coverage" + }, "peerDependencies": { "@agoraio-extensions/terra-core": ">=0.1.0" }, diff --git a/terra-core/package.json b/terra-core/package.json index bbb22ba..684a63e 100644 --- a/terra-core/package.json +++ b/terra-core/package.json @@ -1,16 +1,20 @@ { "name": "@agoraio-extensions/terra-core", - "repository": { - "type": "git", - "url": "git+https://github.com/AgoraIO-Extensions/terrax.git" - }, "version": "0.1.2", "main": "./src/index", + "scripts": { + "build": "tsc", + "test": "jest --coverage" + }, "author": "", "license": "ISC", + "repository": { + "type": "git", + "url": "git+https://github.com/AgoraIO-Extensions/terrax.git" + }, "bugs": { "url": "https://github.com/AgoraIO-Extensions/terrax/issues" }, "homepage": "https://github.com/AgoraIO-Extensions/terrax#readme", "description": "" -} +} \ No newline at end of file diff --git a/terra/package.json b/terra/package.json index 9d130ff..6b05144 100644 --- a/terra/package.json +++ b/terra/package.json @@ -6,7 +6,9 @@ "terra": "./src/bin" }, "scripts": { - "start": "ts-node -T ./src/bin" + "build": "tsc", + "start": "ts-node -T ./src/bin", + "test": "jest --coverage" }, "keywords": [], "author": "", @@ -28,4 +30,4 @@ }, "homepage": "https://github.com/AgoraIO-Extensions/terrax#readme", "description": "" -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index b560ef9..89bec60 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,6 @@ "compilerOptions": { "target": "es6", "module": "commonjs", - "outDir": "dist", "strict": true, "sourceMap": true, "esModuleInterop": true