diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d46434c..4116908 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ['18', '22'] + node: ["22", "24"] name: Node ${{ matrix.node }} build steps: @@ -19,15 +19,18 @@ jobs: - uses: pnpm/action-setup@v3 with: - version: 9 + version: 11.13.0 run_install: | - recursive: true args: [--frozen-lockfile, --strict-peer-dependencies] - run: pnpm run build - run: pnpm run test - - run: pnpm run lint + - run: pnpm run lint:pkg - run: pnpm run typecheck + - run: pnpm run test:package-types + - run: node scripts/typecheck-p4-json-fixtures.mjs + - run: node scripts/typecheck-p4-normalized-fixtures.mjs - run: node pkg-tests/node-load.cjs - run: node pkg-tests/node-load.mjs - run: node pkg-tests/node-umd.mjs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e59122d..d18ae0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release NPM package on: push: - tags: ['v*'] + tags: ["v*"] jobs: build: @@ -13,19 +13,20 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '20.x' + node-version: "24.x" - uses: pnpm/action-setup@v3 with: - version: 9 + version: 11.13.0 run_install: | - recursive: true args: [--frozen-lockfile, --strict-peer-dependencies] - run: pnpm build - run: pnpm run test - - run: pnpm run lint + - run: pnpm run lint:pkg - run: pnpm run typecheck + - run: pnpm run test:package-types release: needs: [build] @@ -36,7 +37,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '20.x' + node-version: "24.x" - name: Set tag id: tagName @@ -44,7 +45,7 @@ jobs: - uses: pnpm/action-setup@v3 with: - version: 9 + version: 11.13.0 run_install: | - recursive: true args: [--frozen-lockfile, --strict-peer-dependencies] diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 0000000..1319bf0 --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "singleQuote": false, + "printWidth": 120, + "trailingComma": "es5", + "sortPackageJson": false, + "ignorePatterns": [] +} diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index b8fab9b..0000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "singleQuote": true, - "printWidth": 120, - "trailingComma": "es5" -} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8dfb9da --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "editor.defaultFormatter": "oxc.oxc-vscode", + "editor.formatOnSave": true +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 31609ab..2633ca6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed incorrectly formatted label/value maps in Manifests (#33) +