From 2849cac973639c74dd4ee12d0cb6bf962ec4f566 Mon Sep 17 00:00:00 2001 From: Jake Teton-Landis Date: Tue, 26 Dec 2023 19:55:09 -0800 Subject: [PATCH] iterate on gh workflow --- .github/workflows/main.yml | 7 +++++-- packages/internal-tsconfig/package.json | 3 ++- packages/internal-tsconfig/tsconfig.tsup.json | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 packages/internal-tsconfig/tsconfig.tsup.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89a88c99..ce724a87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,9 @@ jobs: path: "emsdk-cache" key: ${{ hashFiles('scripts/emcc.sh') }} + - name: Environment info + run: env ; which npx ; npx --version ; npx which tsc ; npx tsc --version + - name: Build run: yarn build @@ -67,13 +70,13 @@ jobs: run: yarn test:slow - name: Build tarballs - run: yarn tarball + run: yarn tarball && du -h build/tar/* - name: Test release with NodeJS/Typescript example run: ./scripts/smoketest-node.ts - name: Test release with create-react-app/Typescript example - run: ./scripts/smoketest-website.ts + run: ./scripts/smoketest-create-react-app.ts - name: Test release with Vite/Vue example run: ./scripts/smoketest-vite.ts diff --git a/packages/internal-tsconfig/package.json b/packages/internal-tsconfig/package.json index b0804367..afa4e54e 100644 --- a/packages/internal-tsconfig/package.json +++ b/packages/internal-tsconfig/package.json @@ -4,7 +4,8 @@ "version": "0.25.0-rc.6", "stableVersion": "0.24.0", "scripts": { - "build": "npx tsc --project . && echo ran build script of $npm_package_json && ls", + "build": "yarn build:tsc && yarn build:tsc --listFiles && echo ran build script of $npm_package_json && ls", + "build:tsc": "npx tsc --project tsconfig.tsup.json", "clean": "git clean -fx ." } } diff --git a/packages/internal-tsconfig/tsconfig.tsup.json b/packages/internal-tsconfig/tsconfig.tsup.json new file mode 100644 index 00000000..96060b9f --- /dev/null +++ b/packages/internal-tsconfig/tsconfig.tsup.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "./tsconfig.json", + "include": ["./tsup.base.config.ts"] +}