Skip to content

Commit ac6688a

Browse files
committed
[npm -> pnpm], [cjs -> es6]
1 parent 62b1f7d commit ac6688a

28 files changed

+208
-5451
lines changed
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Better Dependabot
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *" # Once per day
6+
workflow_dispatch:
7+
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [16.x]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Install Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install pnpm
26+
uses: pnpm/[email protected]
27+
with:
28+
version: 7
29+
30+
- name: Update P-NP dependencies
31+
run: |
32+
pnpm update
33+
- name: Commit with git
34+
run: |
35+
git pull
36+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
37+
git config --global user.name "github-actions[bot]"
38+
git add .
39+
git commit --allow-empty -s -m "Update dependencies"
40+
- name: Push changes to GitHub
41+
uses: ad-m/github-push-action@master
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
branch: ${{ github.ref }}

.github/workflows/build.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,20 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v3
2121

22-
- name: Use Node.js ${{ matrix.node-version }}
22+
- name: Install Node.js ${{ matrix.node-version }}
2323
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626

27-
- name: Check npm and node version
28-
run: |
29-
npm version
30-
node -v
31-
- name: Build with npm
27+
- name: Install pnpm
28+
uses: pnpm/[email protected]
29+
with:
30+
version: 7
31+
32+
- name: Build with pnpm
3233
run: |
33-
npm install --force
34-
npm run build
34+
pnpm install
35+
npm build
3536
- name: Commit with git
3637
run: |
3738
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

.github/workflows/codeql-analysis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3836

3937
steps:
4038
- name: Checkout repository

.gitignore

+2-27
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ bower_components
5858
.lock-wscript
5959

6060

61-
# Compiled binary addons (https://nodejs.org/api/addons.html)
62-
build/Release
63-
6461

6562
# NodeJS Modules
6663
node_modules/
@@ -70,9 +67,6 @@ node_modules/
7067
jspm_packages/
7168

7269

73-
# TypeScript v1 declaration files
74-
typings/
75-
7670

7771
# TypeScript cache
7872
*.tsbuildinfo
@@ -124,10 +118,6 @@ typings/
124118

125119
# Gatsby files
126120
.cache/
127-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
128-
# https://nextjs.org/blog/next-9-1#public-directory-support
129-
# public
130-
131121

132122
# vuepress build output
133123
.vuepress/dist
@@ -149,24 +139,9 @@ typings/
149139
.tern-port
150140

151141

152-
# Generated lock file
142+
# Generated lock files
153143
pnpm-lock.yaml
154-
155-
156-
# P-NP MacOS Binary
157-
p-np-patcher-macos
158-
p-np-macos
159-
160-
161-
# P-NP Windows Binary
162-
p-np-patcher-win.exe
163-
p-np-win.exe
164-
165-
166-
# P-NP Linux Binary
167-
p-np-patcher-linux
168-
p-np-linux
169-
144+
package-lock.json
170145

171146
# IntelliJ Idea Project Config
172147
/.idea/

dist/cheatGuiCache.js

+12-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cheatGuiCache.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/constants.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/constants.js

+12-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/constants.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/displayImages.js

+1-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/displayImages.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hash.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export declare function hash(text: string): string;
1+
export default function hash(text: string): string;
22
//# sourceMappingURL=hash.d.ts.map

dist/hash.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/hash.js

+4-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hash.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)