Skip to content

Commit 5890747

Browse files
authored
Merge pull request #40 from jj811208/chore/upgrade-node-and-yarn
feat:upgrade node and yarn
2 parents dc440aa + 15848e3 commit 5890747

14 files changed

+2791
-2432
lines changed

.github/static/banner.png

111 KB
Loading

.github/workflows/deploy-page.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v3
2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: 16
28+
node-version: 20
2929
- run: yarn install --immutable
3030
- run: yarn workspace react-watching-you build # website-watching-you needs this
3131
- run: OUT_DIR=../../dist yarn workspace website-watching-you build

.github/workflows/npm-publish-core.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 16
15+
node-version: 20
1616
- run: yarn install --immutable
1717
- run: yarn workspace watching-you run build
1818
- run: yarn workspace react-watching-you run build
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@v3
2929
- uses: actions/setup-node@v3
3030
with:
31-
node-version: 16
31+
node-version: 20
3232
- run: yarn workspace watching-you install --immutable
3333
- run: yarn workspace watching-you build
3434
- run: yarn workspace watching-you npm publish

.github/workflows/npm-publish-react.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 16
16+
node-version: 20
1717
- run: yarn install --immutable
1818
- run: yarn workspace watching-you run build
1919
- run: yarn workspace react-watching-you run build
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- uses: actions/setup-node@v3
3131
with:
32-
node-version: 16
32+
node-version: 20
3333
- run: yarn workspace react-watching-you install --immutable
3434
- run: yarn workspace react-watching-you build
3535
- run: yarn workspace react-watching-you npm publish

.github/workflows/npm-publish-vue.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 16
16+
node-version: 20
1717
- run: yarn install --immutable
1818
- run: yarn workspace watching-you run build
1919
- run: yarn workspace react-watching-you run build
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- uses: actions/setup-node@v3
3131
with:
32-
node-version: 16
32+
node-version: 20
3333
- run: yarn workspace vue-watching-you install --immutable
3434
- run: yarn workspace vue-watching-you build
3535
- run: yarn workspace vue-watching-you npm publish

.github/workflows/pr-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 16
15+
node-version: 20
1616
- run: yarn install --immutable
1717
- run: yarn workspace watching-you run build
1818
- run: yarn workspace react-watching-you run build

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 16.13.2
1+
nodejs 20.18.3

.yarn/releases/yarn-4.0.0-rc.26.cjs

-811
This file was deleted.

.yarn/releases/yarn-4.6.0.cjs

+934
Large diffs are not rendered by default.

.yarnrc.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
26

37
npmAuthToken: "${NODE_AUTH_TOKEN-}"
48

59
npmPublishAccess: public
610

7-
yarnPath: .yarn/releases/yarn-4.0.0-rc.26.cjs
11+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<a href="https://github.com/jj811208/watching-you">
2-
<img alt="watching-you" src="https://socialify.git.ci/jj811208/watching-you/image?description=1&descriptionEditable=Watching-you%20is%20a%20javascript%20library%20for%20building%20animations%20that%20watch%20anything%20on%20DOM.&font=Inter&language=1&logo=https%3A%2F%2Femojipedia-us.s3.dualstack.us-west-1.amazonaws.com%2Fthumbs%2F120%2Fapple%2F325%2Feyes_1f440.png&pattern=Charlie%20Brown&theme=Dark"/>
2+
<img alt="watching-you" src="https://github.com/jj811208/watching-you/blob/main/.github/static/banner.png"/>
33
</a>
44

55
<p align="center">

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
"homepage": "https://github.com/jj811208/watching-you",
4343
"bugs": "https://github.com/jj811208/watching-you/issues",
4444
"author": "Ryan Chu <[email protected]> (https://github.com/jj811208)",
45-
"packageManager": "yarn@4.0.0-rc.26"
45+
"packageManager": "yarn@4.6.0"
4646
}

packages/core/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type WatchingYouRender = (
1717

1818
type WatchingYouWatcher = string | Element;
1919
type WatchingYouTarget = string | Element;
20-
type WatchingYouTargetType = 'mouse' | 'dom' | 'input' | 'textarea';
20+
type WatchingYouTargetType = keyof typeof TargetPlugins;
2121
type WatchingYouPower = number | { x?: number; y?: number };
2222
interface WatchingYouOptions {
2323
target?: WatchingYouTarget;

0 commit comments

Comments
 (0)