-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split runtime from codegen package
in order to allow for more efficient package handling - remove husky and lint-staged in favor of linting in ci in order to reduce tooling packages required - switch package to type=module - switch to vite in order to provide cjs and mjs entries - switch to vitest less config, less packages, faster - introduce packages/ folder #monorepostyle BREAKING CHANGE: package has been split and imports have been cleaned up old | new ---------------------------|-------------------------- oazapfts/runtime | @oazapfts/runtime oazapfts/lib/runtime | @oazapfts/runtime oazapfts/runtime/query | @oazapfts/runtime/query oazapfts/lib/runtime/query | @oazapfts/runtime/query __new__ | @oazapfts/runtime/headers __new__ | @oazapfts/runtime/util oazapfts/codegen | oazapfts oazapfts/lib/codegen | oazapfts non-generated code using oazapfts types and imports will most likely need to be migrated generated clients should now have @oazapfts/runtime as dependency instead of oazapfts `handle`, `ok`, `okify` and `optimistic` runtime helpers have been moved to `@oazapfts/runtime` along with other exports that mainly have been used internally. When you miss something from `oazapfts` package, try importing it from `@oazapfts/runtime` ref #568 fix #401 Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
- Loading branch information
Showing
63 changed files
with
3,970 additions
and
8,347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,56 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
branches: [main, alpha, beta] | ||
pull_request: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
test-and-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
check-latest: true | ||
- run: npm ci | ||
- run: npm test | ||
- run: npx semantic-release | ||
|
||
- name: 📥 Install dependencies | ||
run: npm ci | ||
|
||
- name: 🔍 Lint | ||
run: npm run lint | ||
|
||
- name: 🧪 Test | ||
run: npm test | ||
|
||
- name: 📦 Release @oazapfts/runtime | ||
run: | | ||
set -e # Exit immediately if a command exits with a non-zero status. | ||
cd packages/runtime | ||
npm install semantic-release-monorepo --no-save | ||
npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: 📦 Release oazapfts | ||
run: | | ||
set -e # Exit immediately if a command exits with a non-zero status. | ||
cp README.md packages/codegen/README.md | ||
cd packages/codegen | ||
npm install semantic-release-monorepo --no-save | ||
npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
lib/ | ||
packages/codegen/dist/ | ||
packages/runtime/dist/ | ||
node_modules/ | ||
.idea/ | ||
.vscode/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"lib": ["es2015", "dom"], | ||
"module": "commonjs", | ||
"strict": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noUnusedLocals": false, | ||
"baseUrl": ".", | ||
"paths": { | ||
"oazapfts/lib/*": ["../lib/*"] | ||
"@oazapfts/runtime": ["../packages/runtime/dist"], | ||
"@oazapfts/runtime/*": ["../packages/runtime/dist/*"] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.