Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
fac26f2
Add changesets action without publishing
benjie Mar 9, 2026
ca508be
Change grafast build process to new centralized build
benjie Mar 9, 2026
d1e08ed
Rename
benjie Mar 9, 2026
e195427
Give all public packages a build-release command and publishConfig
benjie Mar 9, 2026
a336613
Remove colon from command and add new workspaces build release command
benjie Mar 9, 2026
bc0e4bb
codegen plugin has no fwd
benjie Mar 9, 2026
868c121
Add missing LICENSE.md files
benjie Mar 9, 2026
325b94c
No such thing as index.js
benjie Mar 9, 2026
fdaa0b1
Manage peerDep ranges
benjie Mar 9, 2026
b1f0a8b
Explicit peerDependencies ranges
benjie Mar 9, 2026
787d9c6
Use development order
benjie Mar 9, 2026
518010c
Break the cycle
benjie Mar 9, 2026
5b35bdc
x yarn
benjie Mar 9, 2026
b67fa85
Standardize packing for all packages
benjie Mar 9, 2026
0017387
Rename prepack to build and build-release to prepack
benjie Mar 9, 2026
c2a3aa2
Update scripts to reflect new build process
benjie Mar 9, 2026
facf300
Handle some minor issues
benjie Mar 9, 2026
d21bd4a
Copy .npmignore
benjie Mar 9, 2026
6a09531
Clearer variable names
benjie Mar 9, 2026
574269c
build-package only builds essential packages (not websites)
benjie Mar 9, 2026
2add17e
Each package does its own prepack
benjie Mar 9, 2026
b3855f1
Don't forbid postpack
benjie Mar 9, 2026
e784e69
Run prepack
benjie Mar 9, 2026
f702fd1
Fix dev topography to match tsconfig.json
benjie Mar 9, 2026
82234db
Remove 'graphile' as devdep to break cycle; replace with npm script
benjie Mar 9, 2026
f8433e9
Catch bug in pack_pkg
benjie Mar 9, 2026
add45da
Also bundle changelog
benjie Mar 9, 2026
cff500a
Tidy up publishConfig unless it's being useful
benjie Mar 9, 2026
931898d
Prepack command, also used by GitHub actions for changeset publish
benjie Mar 9, 2026
5182cd0
Avoid https://github.com/changesets/changesets/issues/1011
benjie Mar 9, 2026
d21fa83
Factor Ruru into version script
benjie Mar 9, 2026
8728feb
Via postversion
benjie Mar 9, 2026
7c24b73
lint ignore release
benjie Mar 9, 2026
6eee565
Lint
benjie Mar 9, 2026
c538b22
Remove unused esmHack
benjie Mar 9, 2026
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
2 changes: 1 addition & 1 deletion .changeset/commit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file exists so that `yarn changeset` auto-commits, but
* `yarn changeset version` does not - we want you to run
* `yarn changeset:version` instead (which will commit).
* `yarn changeset-version` instead (which will commit).
*/
const commit = require("@changesets/cli/commit");

Expand Down
3 changes: 3 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
},
"changelog": [
"@changesets/changelog-github",
{
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
- name: "Build"
run: yarn build

- name: "Prepack"
run: yarn workspaces foreach --parallel --topological --all run prepack

- name: "Lint Code"
run: yarn eslint .

Expand Down Expand Up @@ -73,7 +70,7 @@ jobs:
- run: yarn --immutable

- name: "Build Code"
run: yarn build && yarn prepack:all
run: yarn build

- name: "Run depcheck script"
run: node scripts/benjies-depcheck.mjs
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v5

- name: Setup Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'yarn'

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: yarn changeset-version
publish: yarn changeset-publish
3 changes: 0 additions & 3 deletions .github/workflows/test-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,5 @@ jobs:
- name: "Build"
run: yarn build

- name: "Prepack"
run: yarn workspaces foreach --verbose --parallel --topological --recursive --from '${{ inputs.package }}' run prepack

- name: "Test Project"
run: yarn run pretest && yarn workspaces foreach --verbose --parallel --worktree --jobs 2 --from '${{ inputs.package }}' run ${{ inputs.testcommand }}
1 change: 1 addition & 0 deletions .lintignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ node_modules/
/graphile-build/graphile-build-pg/exported-schema-for-webpack.mjs
/graphile-build/graphile-build-pg/schema-export-output.mjs
/graphile-build/graphile-build-pg/temp.mjs
/*/*/release/
**/__tests__/**/*.1.graphql
**/__tests__/**/*.json5
**/__tests__/**/*.mermaid
Expand Down
3 changes: 1 addition & 2 deletions grafast/bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"typescript": "^5.9.3"
},
"files": [
"dist",
"index.js"
"dist"
]
}
6 changes: 4 additions & 2 deletions grafast/codegen-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "1.0.0-rc.4",
"description": "A GraphQL code generator plugin for Grafast schemas",
"scripts": {
"prepack": "tsc -b"
"prepack": "node ../../scripts/build-release.mts",
"build-package": "yarn build",
"build": "tsc -b"
},
"exports": {
".": {
Expand Down Expand Up @@ -33,10 +35,10 @@
"node": ">=22"
},
"files": [
"fwd",
"dist"
],
"publishConfig": {
"directory": "release",
"access": "public"
},
"dependencies": {
Expand Down
20 changes: 20 additions & 0 deletions grafast/dataplan-json/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# The MIT License (MIT)

Copyright © 2026 Benjie Gillam

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 changes: 8 additions & 2 deletions grafast/dataplan-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prepack": "tsc -b"
"prepack": "node ../../scripts/build-release.mts",
"build-package": "yarn build",
"build": "tsc -b"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,7 +35,7 @@
"node": ">=22"
},
"peerDependencies": {
"grafast": "workspace:^"
"grafast": "workspace:^1.0.0-rc.8"
},
"files": [
"dist"
Expand All @@ -43,5 +45,9 @@
"jest": "^30.2.0",
"jest-serializer-simple": "workspace:^",
"typescript": "^5.9.3"
},
"publishConfig": {
"directory": "release",
"access": "public"
}
}
20 changes: 20 additions & 0 deletions grafast/dataplan-pg/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# The MIT License (MIT)

Copyright © 2026 Benjie Gillam

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 changes: 8 additions & 2 deletions grafast/dataplan-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
}
},
"scripts": {
"prepack": "node ../../scripts/build-release.mts",
"build-package": "yarn build",
"codegen": "yarn graphql-codegen -c codegen-examples-smallExample.ts",
"update-schema": "ts-node ./src/examples/exampleSchema.ts",
"test": "GRAPHILE_ENV=test jest",
"posttest": "yarn test:exportSchema:graphql-js && yarn test:exportSchema:typeDefs",
"test:exportSchema:graphql-js": "ts-node ./scripts/exportExampleSchema.ts graphql-js && node ./scripts/runExampleSchema.mjs",
"test:exportSchema:typeDefs": "ts-node ./scripts/exportExampleSchema.ts typeDefs && node ./scripts/runExampleSchema.mjs",
"prepack": "yarn codegen && tsc -b && cp src/.npmignore dist/.npmignore",
"build": "yarn codegen && tsc -b && cp src/.npmignore dist/.npmignore",
"serve:example": "GRAPHILE_ENV=development NODE_ENV=development yarn nodemon --watch serve-example-schema.js --watch dist --watch ../grafast/dist/ -x 'node --inspect --enable-source-maps serve-example-schema.js'"
},
"repository": {
Expand Down Expand Up @@ -73,7 +75,7 @@
"peerDependencies": {
"@dataplan/json": "workspace:^",
"grafast": "workspace:^",
"graphile-config": "workspace:^",
"graphile-config": "workspace:^1.0.0-rc.5",
"graphql": "^16.9.0",
"pg": "^8.7.1",
"pg-sql2": "workspace:^"
Expand Down Expand Up @@ -114,5 +116,9 @@
"webpack-cli": "^6.0.1",
"webpack-node-externals": "^3.0.0",
"zx": "^8.8.5"
},
"publishConfig": {
"directory": "release",
"access": "public"
}
}
20 changes: 10 additions & 10 deletions grafast/grafast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
}
},
"scripts": {
"prepack": "node ../../scripts/build-release.mts",
"build-package": "yarn build",
"graphile": "node ../../utils/graphile/dist/cli-run.js",
"codegen": "cd __tests__/dcc && node --experimental-strip-types ../../../../node_modules/.bin/graphql-codegen",
"test": "yarn codegen && yarn test:mocha && yarn test:bundle",
"test:bundle": "node --experimental-strip-types scripts/testbundle.mts",
"test:mocha": "tsc -b tsconfig.test.json && NODE_ENV=test GRAPHILE_ENV=test mocha '**/__tests__/**/*-test.ts'",
"build": "zx scripts/build-npm.mjs",
"postpack": "echo 'FORBIDDEN' && exit 1",
"test": "yarn codegen && yarn test-mocha && yarn test-bundle",
"test-bundle": "node --experimental-strip-types scripts/testbundle.mts",
"test-mocha": "tsc -b tsconfig.test.json && NODE_ENV=test GRAPHILE_ENV=test mocha '**/__tests__/**/*-test.ts'",
"build": "tsc -b",
"md": "spec-md CRYSTAL_FLOW.md > CRYSTAL_FLOW.html"
},
"repository": {
Expand Down Expand Up @@ -84,8 +86,7 @@
},
"files": [
"fwd",
"dist",
"browser"
"dist"
],
"devDependencies": {
"@graphql-codegen/cli": "^6.1.0",
Expand All @@ -98,7 +99,6 @@
"@types/node": "^22.19.1",
"@types/nodemon": "^3.1.1",
"chai": "^5.3.3",
"graphile": "workspace:^",
"graphql": "^16.9.0",
"jest": "^30.2.0",
"lodash": "^4.17.23",
Expand All @@ -114,7 +114,7 @@
"zx": "^8.8.5"
},
"publishConfig": {
"access": "public",
"directory": "release"
"directory": "release",
"access": "public"
}
}
33 changes: 0 additions & 33 deletions grafast/grafast/scripts/build-npm.mjs

This file was deleted.

20 changes: 20 additions & 0 deletions grafast/grafserv-persisted/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# The MIT License (MIT)

Copyright © 2026 Benjie Gillam

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 changes: 12 additions & 7 deletions grafast/grafserv-persisted/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
}
},
"scripts": {
"prepack": "tsc -b",
"prepack": "node ../../scripts/build-release.mts",
"build-package": "yarn build",
"build": "tsc -b",
"test": "true"
},
"repository": {
Expand Down Expand Up @@ -46,9 +48,9 @@
"node": ">=22"
},
"peerDependencies": {
"grafast": "workspace:^",
"grafserv": "workspace:^",
"graphile-config": "workspace:^",
"grafast": "workspace:^1.0.0-rc.8",
"grafserv": "workspace:^1.0.0-rc.6",
"graphile-config": "workspace:^1.0.0-rc.5",
"graphql": "^16.9.0"
},
"peerDependenciesMeta": {
Expand All @@ -68,7 +70,10 @@
"typescript": "^5.9.3"
},
"files": [
"dist",
"index.js"
]
"dist"
],
"publishConfig": {
"directory": "release",
"access": "public"
}
}
20 changes: 20 additions & 0 deletions grafast/grafserv/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# The MIT License (MIT)

Copyright © 2026 Benjie Gillam

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading
Loading