Skip to content

Commit c868c94

Browse files
build: check package types, lint packages, type check (#263)
1 parent f4d5f4f commit c868c94

File tree

6 files changed

+269
-10
lines changed

6 files changed

+269
-10
lines changed

.github/workflows/github-actions.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ jobs:
7373
run: yarn build:ci
7474

7575
- name: Typecheck
76-
run: yarn typecheck
76+
run: yarn check:types
77+
78+
- name: Check package types
79+
run: yarn check:package-types
80+
81+
- name: Lint packages
82+
run: yarn check:package-lint
7783

7884
test:
7985
needs: [lint, typecheck]

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,27 @@
1111
"lint": "turbo lint --filter=!template-*",
1212
"test:ci": "jest --ci",
1313
"test": "cd ./packages/frames.js && npm run test:watch",
14-
"typecheck": "turbo typecheck",
14+
"check:package-types": "turbo check:package-types",
15+
"check:package-lint": "turbo check:package-lint",
16+
"check:types": "turbo check:types",
1517
"publish-packages": "yarn build lint && changeset version && changeset publish && git push --follow-tags origin main",
1618
"publish-canary": "turbo run build lint && cd ./packages/frames.js && yarn publish --tag canary && git push --follow-tags origin main",
1719
"format": "prettier --write \"**/*.{ts,tsx,md}\""
1820
},
1921
"devDependencies": {
20-
"@swc/core": "^1.4.8",
21-
"@swc/jest": "^0.2.36",
22+
"@arethetypeswrong/cli": "^0.15.2",
2223
"@changesets/cli": "^2.27.1",
2324
"@framesjs/eslint-config": "*",
2425
"@framesjs/typescript-config": "*",
2526
"@jest/globals": "^29.7.0",
27+
"@swc/core": "^1.4.8",
28+
"@swc/jest": "^0.2.36",
2629
"@types/jest": "^29.5.11",
2730
"fast-glob": "^3.3.2",
2831
"jest": "^29.7.0",
2932
"nock": "beta",
3033
"prettier": "^3.1.1",
34+
"publint": "^0.2.7",
3135
"rimraf": "^5.0.5",
3236
"turbo": "^1.12.2"
3337
},

packages/frames.js/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"dev": "npm run build -- --watch",
1919
"test:watch": "jest --watch",
2020
"update:proto": "curl https://raw.githubusercontent.com/farcasterxyz/hub-monorepo/main/packages/core/src/protobufs/generated/message.ts -o src/farcaster/generated/message.ts",
21-
"typecheck": "tsc --noEmit"
21+
"check:types": "tsc --noEmit",
22+
"check:package-types": "attw --pack .",
23+
"check:package-lint": "publint --strict"
2224
},
2325
"repository": {
2426
"type": "git",

packages/render/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"lint": "eslint \"./src/**/*.{ts,tsx}\"",
1717
"build": "NODE_OPTIONS='--max-old-space-size=16384' tsup",
1818
"dev": "npm run build -- --watch",
19-
"test:watch": "jest --watch"
19+
"test:watch": "jest --watch",
20+
"check:package-types": "attw --pack .",
21+
"check:package-lint": "publint --strict"
2022
},
2123
"repository": {
2224
"type": "git",

turbo.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"cache": false,
1414
"persistent": true
1515
},
16-
"typecheck": {}
16+
"check:package-types": {},
17+
"check:package-lint": {},
18+
"check:types": {}
1719
},
1820
"globalEnv": [
1921
"NODE_ENV",

0 commit comments

Comments
 (0)