Skip to content

Commit

Permalink
Merge pull request #12 from nrccua/feature/make_cross_node_compatible
Browse files Browse the repository at this point in the history
[E4E-0]: Try to allow the package to be used across node versions
  • Loading branch information
TheCleric authored Dec 9, 2021
2 parents d0335a5 + 749db93 commit 155b717
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14"]
node:
- 14
- 16
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -35,7 +37,8 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: npm i
- run: rm -rf package-lock.json # Remove the package-lock so that all versions of node can be tested
- run: npm i --legacy-peer-deps
- run: npm run test
- name: Build
run: npm run build
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.2.2](https://github.com/nrccua/apollo-rest-utils/compare/1.2.1...1.2.2) (2021-12-09)


### Changes

* [E4E-0]: Only support 14 + 16 ([71f44cc](https://github.com/nrccua/apollo-rest-utils/commit/71f44cc8622bf69e8caa8951e30d316edf4bcdd4))
* [E4E-0]: Update package-lock.json with changes from latest eslint-config ([de1beba](https://github.com/nrccua/apollo-rest-utils/commit/de1beba076ccc682eb05517ca35d8cbd8f55b260))
* [E4E-0]: Try to allow the package to be used across node versions ([daf6b75](https://github.com/nrccua/apollo-rest-utils/commit/daf6b758bd7decaaf515d4d48d3abf2fd176bcd9))
* [E4E-58]: 1.2.1 ([e8bf334](https://github.com/nrccua/apollo-rest-utils/commit/e8bf334e1398e1a5ba520052b7c8063e475430f8))

### [1.2.1](https://github.com/nrccua/apollo-rest-utils/compare/1.2.0...1.2.1) (2021-12-08)


Expand Down
172 changes: 171 additions & 1 deletion package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
"url": "git+https://github.com/nrccua/apollo-rest-utils.git"
},
"scripts": {
"build": "npm run clean && tsc $(find lib | grep .ts | grep -v test.ts) --outDir dist --esModuleInterop --declaration && chmod +x dist/generateRoutes/index.js",
"clean": "rm -rf dist",
"build": "npm run clean && npm run build:dist",
"build:dist": "tsc $(find lib | grep .ts | grep -v test.ts) --outDir dist --esModuleInterop --declaration && chmod +x dist/generateRoutes/index.js",
"clean": "rm -rf dist && ([ -z \"$(pwd | grep node_modules)\"] || rm -rf package-lock.json) # Remove the package-lock.json when this is used as a library so that any version of node can be used with it",
"clean:full": "npm run clean && rm -rf node_modules",
"postinstall": "npm run build",
"prepare": "husky install && git config --local push.followTags true",
Expand All @@ -68,5 +69,5 @@
"update:version:major": "standard-version --release-as major",
"update:version:minor": "standard-version --release-as minor"
},
"version": "1.2.1"
"version": "1.2.2"
}

0 comments on commit 155b717

Please sign in to comment.