diff --git a/.changeset/bumpy-moles-listen.md b/.changeset/bumpy-moles-listen.md new file mode 100644 index 0000000..85f1f9f --- /dev/null +++ b/.changeset/bumpy-moles-listen.md @@ -0,0 +1,9 @@ +--- +"@vlandoss/localproxy": patch +"@vlandoss/clibuddy": patch +"@vlandoss/run-run": patch +"@vlandoss/starter": patch +"@vlandoss/loggy": patch +--- + +Add test:types script diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9ea9d4..379d9c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v4 - name: ⌛ Setup CI - uses: variableland/gh-actions/actions/setup-pnpm-bun@main + uses: variableland/gh-actions/actions/setup-pnpm-bun@dev - name: 💅 Test static run: pnpm rr check tsc @@ -42,7 +42,7 @@ jobs: uses: actions/checkout@v4 - name: ⌛ Setup CI - uses: variableland/gh-actions/actions/setup-pnpm-bun@main + uses: variableland/gh-actions/actions/setup-pnpm-bun@dev - name: 🚀 Create release PR or publish versions uses: changesets/action@v1 @@ -68,9 +68,9 @@ jobs: uses: actions/checkout@v4 - name: ⌛ Setup CI - uses: variableland/gh-actions/actions/setup-pnpm-bun@main + uses: variableland/gh-actions/actions/setup-pnpm-bun@dev - name: 🚀 Preview release - uses: variableland/gh-actions/actions/monorepo-preview-release@main + uses: variableland/gh-actions/actions/monorepo-preview-release@dev with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 96eb28b..83d56e3 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,6 @@ This monorepo uses [Turborepo](https://turbo.build/repo/docs) to manage tasks. H - `pnpm build` - Build all packages - `pnpm test` - Run tests for all packages -- `pnpm test:coverage` - Run tests with coverage for all packages Additionally, the monorepo itself uses the CLIs [`run-run`](./packages/run-run/README.md) and [`starter`](./packages/starter/README.md): diff --git a/package.json b/package.json index e48ce42..c2065a5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "build": "turbo build", "test": "turbo test", - "test:coverage": "turbo test:coverage" + "test:types": "turbo test:types" }, "devDependencies": { "@changesets/changelog-github": "^0.5.2", diff --git a/packages/clibuddy/package.json b/packages/clibuddy/package.json index 2d29b7a..fd2921f 100644 --- a/packages/clibuddy/package.json +++ b/packages/clibuddy/package.json @@ -24,7 +24,7 @@ "src" ], "scripts": { - "prepublishOnly": "pnpm build" + "test:types": "rr tsc" }, "dependencies": { "@pnpm/workspace.find-packages": "^1000.0.62", diff --git a/packages/localproxy/package.json b/packages/localproxy/package.json index 81db5ae..63e8d86 100644 --- a/packages/localproxy/package.json +++ b/packages/localproxy/package.json @@ -24,7 +24,8 @@ "tsconfig.json" ], "scripts": { - "test": "bun test" + "test": "bun test", + "test:types": "rr tsc" }, "dependencies": { "@inquirer/prompts": "^7.10.1", diff --git a/packages/loggy/package.json b/packages/loggy/package.json index dc0dfe7..b9d899b 100644 --- a/packages/loggy/package.json +++ b/packages/loggy/package.json @@ -21,7 +21,7 @@ "src" ], "scripts": { - "prepublishOnly": "pnpm build" + "test:types": "rr tsc" }, "publishConfig": { "access": "public" diff --git a/packages/run-run/bin.ts b/packages/run-run/bin.ts index 83e7273..f0b2914 100755 --- a/packages/run-run/bin.ts +++ b/packages/run-run/bin.ts @@ -1,6 +1,7 @@ #!/usr/bin/env bun import { main } from "./src/main"; +// Add test comment main({ binDir: __dirname, }); diff --git a/packages/run-run/package.json b/packages/run-run/package.json index d999e54..043b7dd 100644 --- a/packages/run-run/package.json +++ b/packages/run-run/package.json @@ -30,7 +30,8 @@ "tsconfig.json" ], "scripts": { - "test": "bun test" + "test": "bun test", + "test:types": "rr tsc" }, "dependencies": { "@biomejs/biome": "2.1.4", diff --git a/packages/starter/package.json b/packages/starter/package.json index c9006d2..10f666c 100644 --- a/packages/starter/package.json +++ b/packages/starter/package.json @@ -23,6 +23,9 @@ "plopfiles", "tsconfig.json" ], + "scripts": { + "test:types": "rr tsc" + }, "dependencies": { "@vlandoss/clibuddy": "workspace:*", "@vlandoss/loggy": "workspace:*", diff --git a/turbo.json b/turbo.json index 6a64601..112564a 100644 --- a/turbo.json +++ b/turbo.json @@ -7,12 +7,8 @@ "outputs": ["dist/**"] }, "test": { - "persistent": true, - "cache": false + "dependsOn": ["^test"] }, - "test:coverage": { - "persistent": true, - "cache": false - } + "test:types": {} } }