Skip to content

Commit

Permalink
chore: drop node 14
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires node 16
  • Loading branch information
christophehurpeau committed Dec 30, 2022
1 parent 59cb1d2 commit 3d4c7f1
Show file tree
Hide file tree
Showing 226 changed files with 532 additions and 579 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Create documentation and deploy to Github pages'
name: "Create documentation and deploy to Github pages"
on:
push:
branches:
Expand All @@ -17,6 +17,9 @@ jobs:
- name: Install Dependencies
run: yarn install --immutable --immutable-cache

- name: Run tsc for tsc cache
run: yarn tsc

- name: Generate Typedoc
run: yarn typedoc --tsconfig tsconfig.doc.json

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-renovate-pob_root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Commit changes on @pob/root update
on:
push:
branches:
- 'renovate/pob-root-**'
- "renovate/pob-root-**"

jobs:
run-install-and-commit-modified-files:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-renovate-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run Prettier on renovate update
on:
push:
branches:
- 'renovate/prettier-**'
- "renovate/prettier-**"

jobs:
run-prettier:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: yarn install --immutable --immutable-cache
Expand All @@ -27,38 +27,38 @@ jobs:

- name: Build
run: yarn run build
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Prettier
run: yarn run lint:prettier
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Typescript
run: yarn run tsc
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Eslint
run: yarn run lint:eslint
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Generate Test Coverage
run: yarn run test --coverage --coverageReporters=json --coverageReporters=text
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')
env:
CI: true

- name: Send results to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Check nothing was forgotten before commit
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')
run: yarn run repository-check-dirty

- uses: GoogleCloudPlatform/release-please-action@v3
if: ${{ startsWith(matrix.node-version, '16.') && github.ref == 'refs/heads/main' }}
if: ${{ startsWith(matrix.node-version, '18.') && github.ref == 'refs/heads/main' }}
id: release
with:
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -67,6 +67,6 @@ jobs:

# publish:
- run: npm publish
if: ${{ startsWith(matrix.node-version, '16.') && github.ref == 'refs/heads/main' && steps.release.outputs.release_created }}
if: ${{ startsWith(matrix.node-version, '18.') && github.ref == 'refs/heads/main' && steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
/*.config.cjs
/*.config.mjs
/tsconfig.json
/tsconfig.build.json
/tsconfig.eslint.json
/dist/tsbuildinfo
/dist/definitions/tsbuildinfo
/tsconfig.doc.json
babel.config.json
__snapshots__
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = function babelConfig(api) {

return {
only: ['src'],
presets: [[require.resolve('pob-babel/preset.cjs')]],
presets: [['pob-babel/preset.js']],
};
};
2 changes: 1 addition & 1 deletion bin/check-package-dependencies.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
createCheckPackage,
createCheckPackageWithWorkspaces,
} from '../dist/index-node14.mjs';
} from '../dist/index-node16.mjs';

const checkPackage = createCheckPackage();
if (checkPackage.pkg.workspaces) {
Expand Down
1 change: 0 additions & 1 deletion dist/check-package-with-workspaces.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/check-package.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkDirectDuplicateDependencies.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkDirectPeerDependencies.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkDuplicateDependencies.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkExactVersions.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkIdenticalVersions.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkIdenticalVersionsThanDependency.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkNoDependencies.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkPeerDependencies.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkResolutionsHasExplanation.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkResolutionsVersionsMatch.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkSatisfiesVersions.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkSatisfiesVersionsFromDependency.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/checks/checkSatisfiesVersionsInDependency.d.ts.map

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/definitions/check-package-with-workspaces.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

0 comments on commit 3d4c7f1

Please sign in to comment.