Skip to content

Commit

Permalink
chore(repository-tools): make arethetypeswrong check part of build/CI
Browse files Browse the repository at this point in the history
  • Loading branch information
altano committed Sep 1, 2024
1 parent 4e37101 commit 8575fa0
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "turbo run format",
"lint": "eslint package.json *.ts && turbo run lint",
"preinstall": "npx only-allow pnpm",
"prep": "turbo run build test lint format typecheck",
"prep": "turbo run build test lint format typecheck check-exports",
"release": "turbo run build && changeset publish",
"test": "turbo run test",
"update": "pnpm update --latest --interactive",
Expand Down
4 changes: 0 additions & 4 deletions packages/repository-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,3 @@ This is a dual ESM/CJS package, and publishes both a top-level module with all e
| ESM | Yes | `import { findRoot } from "@altano/repository-tools/findRoot.js";` |
| CJS | No | `const { findRoot } = require("@altano/repository-tools")` |
| CJS | Yes | `const { findRoot } = require("@altano/repository-tools/findSync.cjs")` |

## Contributing

This is a dual ESM/CJS package which is really hard to get right. Manually run `pnpm build && pnpm dlx @arethetypeswrong/cli --pack` before making any changes that would affect the build, packaging, or publishing.
2 changes: 2 additions & 0 deletions packages/repository-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
],
"scripts": {
"build": "tsup --config build-config/tsup.config.node-hybrid.ts",
"check-exports": "attw --pack .",
"clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist",
"dev": "pnpm run build --watch",
"format": "prettier --check src",
Expand Down Expand Up @@ -61,6 +62,7 @@
"devDependencies": {
"@altano/tsconfig": "workspace:*",
"@altano/vitest-plugins": "workspace:*",
"@arethetypeswrong/cli": "^0.15.4",
"@types/node": "^20.11.25",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/expect": "^1.4.0",
Expand Down
Loading

0 comments on commit 8575fa0

Please sign in to comment.