diff --git a/.github/workflows/code:test.yml b/.github/workflows/code:test.yml index 7da73a0ff..a7791abf7 100644 --- a/.github/workflows/code:test.yml +++ b/.github/workflows/code:test.yml @@ -7,7 +7,7 @@ on: - cron: "0 0 * * *" # Run daily at midnight UTC jobs: - test: + code-import-test: runs-on: ubuntu-latest strategy: @@ -32,8 +32,6 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2 - with: - version: 9 - run: cd code diff --git a/.github/workflows/contentlayer.yml b/.github/workflows/contentlayer.yml index 962162710..356f76089 100644 --- a/.github/workflows/contentlayer.yml +++ b/.github/workflows/contentlayer.yml @@ -18,8 +18,6 @@ jobs: - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 906dd536d..69569cbf7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,8 +18,6 @@ jobs: - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Install Vercel CLI and pnpm run: npm install --global vercel@latest - name: Pull Vercel Environment Information diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index b9c8ad1dc..8cd048900 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -16,8 +16,6 @@ jobs: uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: diff --git a/package.json b/package.json index a4426924f..11bb9a50c 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "runner": "npx ts-node -r tsconfig-paths/register", "contentlayer:build": "npx contentlayer2 build --clearCache", - "code-import": "npx esrun coder.ts", + "code-import": "npx tsx coder.ts", "dev": "pnpm code-import && pnpm contentlayer:build && concurrently -p \"[{name}]\" -n \"code import,next dev\" -c \"bgBlue.bold,bgGreen.bold\" \"pnpm code-import --watch\" \"next dev -p 3001\"", "build": "pnpm code-import && pnpm prettier:i18n && pnpm contentlayer:build && next build", "start": "next start -p 3001", @@ -56,6 +56,7 @@ "remark-parse": "^11.0.0", "remark-stringify": "^11.0.0", "strip-indent": "^4.0.0", + "tsx": "^4.19.1", "turbo": "^2.2.3", "unified": "^11.0.5", "unist-util-visit": "^5.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7a4c06768..db5345010 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,6 +92,9 @@ importers: strip-indent: specifier: ^4.0.0 version: 4.0.0 + tsx: + specifier: ^4.19.1 + version: 4.19.1 turbo: specifier: ^2.2.3 version: 2.2.3