Skip to content

Commit

Permalink
build: go back to TS project references (zwave-js#5658)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Apr 19, 2023
1 parent c0fb1fc commit 7cf0df7
Show file tree
Hide file tree
Showing 53 changed files with 1,208 additions and 1,029 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

- name: Compile TypeScript code
run: |
yarn clean $TURBO_FLAGS
# yarn clean $TURBO_FLAGS
yarn build $TURBO_FLAGS
- name: Save Turbo Cache between jobs
Expand Down
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
. "$(dirname -- "$0")/_/husky.sh"

# Make sure tsconfig references are up to date
if ! yarn run check-references >/dev/null 2>&1 ; then
echo "TSConfig references are out of date. Execute \033[0;34myarn run sync-references\033[0m to fix and try again" >&2
exit 1
fi
9 changes: 0 additions & 9 deletions .yarn/plugins/@yarnpkg/plugin-publishconfig.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ plugins:
spec: "https://github.com/Dcard/yarn-plugins/releases/download/v0.7.2/plugin-changed.js"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@yarnpkg/plugin-publishconfig.cjs
spec: "https://raw.githubusercontent.com/alizeait/yarn-plugin-publishconfig/v1.0/bundles/@yarnpkg/plugin-publishconfig.js"

preferInteractive: true

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@commitlint/config-conventional": "^17.4.4",
"@esm2cjs/p-queue": "^7.3.0",
"@microsoft/api-extractor": "^7.33.7",
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.9.0",
"@tsconfig/node14": "^1.0.3",
"@types/fs-extra": "^9.0.13",
"@types/node": "^14.18.36",
Expand Down Expand Up @@ -129,8 +130,10 @@
"for-changed": "yarn changed foreach --exclude \"@zwave-js/repo\" --git-range=$(git describe --abbrev=0)",
"codefind": "yarn ts packages/maintenance/src/codefind.ts",
"extract-api": "FORCE_COLOR=1 yarn turbo run extract-api",
"accept-api": "yarn extract-api --force -- --local",
"monopack": "yarn exec monopack"
"accept-api": "yarn extract-api -- --local",
"monopack": "yarn exec monopack",
"check-references": "workspaces-to-typescript-project-references --check && workspaces-to-typescript-project-references --check --tsconfigPath tsconfig.build.json",
"sync-references": "workspaces-to-typescript-project-references && workspaces-to-typescript-project-references --tsconfigPath tsconfig.build.json && prettier -c '{,packages/*/}{tsconfig,tsconfig.*}.json' -w --loglevel silent"
},
"readme": "README.md",
"config": {
Expand Down
Loading

0 comments on commit 7cf0df7

Please sign in to comment.