Skip to content

Commit

Permalink
Fix TypeScript usage with node16 (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Stover <[email protected]>
  • Loading branch information
Leon Si and quisido authored Nov 30, 2022
1 parent 03e6644 commit 258c726
Show file tree
Hide file tree
Showing 6 changed files with 828 additions and 806 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/use-force-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn eslint
run: yarn run eslint

jest:
name: Jest
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Unit test
run: yarn jest
run: yarn run jest
- name: Upload coverage
if: ${{ always() }}
uses: actions/upload-artifact@v2
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn rollup
run: yarn run rollup
- name: Upload build
uses: actions/upload-artifact@v2
with:
Expand All @@ -92,6 +92,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download build
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand All @@ -100,11 +105,6 @@ jobs:
node-version: 'lts/*'
registry-url: 'https://npm.pkg.github.com'
scope: '@${{ github.repository_owner }}'
- name: Download build
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -121,17 +121,17 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download build
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
check-latest: true
node-version: 'lts/*'
- name: Download build
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
786 changes: 0 additions & 786 deletions .yarn/releases/yarn-3.2.1.cjs

This file was deleted.

807 changes: 807 additions & 0 deletions .yarn/releases/yarn-3.3.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-3.3.0.cjs
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "use-force-update",
"version": "1.0.10",
"version": "1.0.11",
"author": "Charles Stover <[email protected]>",
"description": "React Hook to force your function component to update.",
"homepage": "https://github.com/CharlesStover/use-force-update#readme",
"license": "MIT",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"packageManager": "yarn@3.2.1",
"packageManager": "yarn@3.3.0",
"repository": "github:CharlesStover/use-force-update",
"type": "module",
"types": "./dist/types/index.d.ts",
Expand All @@ -20,6 +20,7 @@
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4182,7 +4182,7 @@ __metadata:

"fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=df0bf1"
dependencies:
node-gyp: latest
conditions: os=darwin
Expand Down Expand Up @@ -6601,7 +6601,7 @@ __metadata:

"resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.17.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>":
version: 1.22.1
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b"
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=c3c19d"
dependencies:
is-core-module: ^2.9.0
path-parse: ^1.0.7
Expand All @@ -6614,7 +6614,7 @@ __metadata:

"resolve@patch:resolve@^2.0.0-next.3#~builtin<compat/resolve>":
version: 2.0.0-next.4
resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin<compat/resolve>::version=2.0.0-next.4&hash=07638b"
resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin<compat/resolve>::version=2.0.0-next.4&hash=c3c19d"
dependencies:
is-core-module: ^2.9.0
path-parse: ^1.0.7
Expand Down Expand Up @@ -7257,7 +7257,7 @@ __metadata:

"typescript@patch:typescript@^4.7.4#~builtin<compat/typescript>":
version: 4.7.4
resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"
resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=65a307"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
Expand Down

0 comments on commit 258c726

Please sign in to comment.