Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .changeset/stale-pans-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@bbob/cli": patch
"@bbob/core": patch
"@bbob/html": patch
"@bbob/parser": patch
"@bbob/plugin-helper": patch
"@bbob/preset-html5": patch
"@bbob/preset-react": patch
"@bbob/preset-vue": patch
"@bbob/preset": patch
"@bbob/react": patch
"@bbob/types": patch
"@bbob/vue2": patch
"@bbob/vue3": patch
---

feat: add arethetypeswrong check to github actions
36 changes: 36 additions & 0 deletions .github/workflows/attw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Are the types wrong?

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
attw:
name: Are the types wrong?
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Install PNPM
uses: pnpm/action-setup@v3
with:
version: 9.4.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Install
run: pnpm install --frozen-lockfile --strict-peer-dependencies

- name: Build
run: pnpm build

- name: Run check
run: pnpm attw
11 changes: 11 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"^types"
],
"outputs": ["{projectRoot}/types"],
"cache": true
},
"build": {
"dependsOn": [
Expand All @@ -14,6 +15,7 @@
"^build:umd"
],
"outputs": ["{projectRoot}/lib", "{projectRoot}/es", "{projectRoot}/dist"],
"cache": true
},
"test": {
"dependsOn": [
Expand All @@ -33,25 +35,34 @@
"^lint"
]
},
"attw": {
"dependsOn": [
"build",
"^attw"
]
},
"build:commonjs": {
"dependsOn": [
"build:es",
"^build:commonjs"
],
"outputs": ["{projectRoot}/lib"],
"cache": true
},
"build:es": {
"dependsOn": [
"^build:es"
],
"outputs": ["{projectRoot}/es"],
"cache": true
},
"build:umd": {
"dependsOn": [
"build:es",
"^build:umd"
],
"outputs": ["{projectRoot}/dist"],
"cache": true
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"cover": "nx run-many --target=cover",
"build": "nx run-many --target=build",
"types": "nx run-many --target=types",
"attw": "nx run-many --target=attw",
"release": "npm run build && npm run types && changeset publish",
"lint": "nx run-many --target=lint",
"cleanup": "node scripts/cleanup"
Expand Down Expand Up @@ -90,7 +91,8 @@
"lint": "@/eslint .",
"types": "@/tsc && @/ts2mjs types",
"bundlesize": "npm run build && @/cross-env NODE_ENV=production @/bundlesize .",
"size": "npm run build && @/cross-env NODE_ENV=production @/size-limit ."
"size": "npm run build && @/cross-env NODE_ENV=production @/size-limit .",
"attw": "npx --yes @arethetypeswrong/cli --profile node16 --pack ."
},
"packageManager": "[email protected]",
"pnpm": {
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"author": "Nikolay Kostyurin <[email protected]>",
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-plugin-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-preset-html5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-preset-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-preset-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
1 change: 1 addition & 0 deletions packages/bbob-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"size": "pkg-task",
"bundlesize": "pkg-task",
"types": "pkg-task",
"attw": "pkg-task",
"prepublishOnly": "npm run build"
},
"size-limit": [
Expand Down
Loading