Skip to content

Commit d22617e

Browse files
authored
Switch to NPM (#138)
1 parent 3a17ca7 commit d22617e

File tree

11 files changed

+7791
-6238
lines changed

11 files changed

+7791
-6238
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ jobs:
2626
with:
2727
node-version: 20
2828
registry-url: "https://registry.npmjs.org"
29-
cache: "yarn" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
3029

31-
- run: yarn install
30+
- run: npm ci
3231

3332
- name: Build
34-
run: yarn build
33+
run: npm run build
3534

3635
- name: Lint
37-
run: yarn lint
36+
run: npm run lint

.github/workflows/release-canary.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ jobs:
2121
with:
2222
node-version: 20
2323
registry-url: "https://registry.npmjs.org"
24-
cache: "yarn" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
2524

2625
- name: Install Dependencies
27-
run: yarn
26+
run: npm ci
2827

2928
- name: Publish Canary release
3029
run: |
@@ -33,7 +32,7 @@ jobs:
3332
echo --- >> .changeset/canary.md
3433
echo >> .changeset/canary.md
3534
echo fake change to always get a canary release >> .changeset/canary.md
36-
yarn changeset version --snapshot canary
37-
yarn run build-and-publish --tag canary
35+
npx changeset version --snapshot canary
36+
npm run build-and-publish --tag canary
3837
env:
3938
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ jobs:
2020
with:
2121
node-version: 20
2222
registry-url: "https://registry.npmjs.org"
23-
cache: "yarn" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
2423

2524
- name: Install Dependencies
26-
run: yarn
25+
run: npm ci
2726

2827
- name: Create Release Pull Request or Publish to npm
2928
id: changesets
3029
uses: changesets/action@v1
3130
with:
32-
publish: yarn run build-and-publish
31+
publish: npm run build-and-publish
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3534
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
node_modules
22
/lib
3-
.pnp.*
4-
.yarn/*
5-
!.yarn/patches
6-
!.yarn/plugins
7-
!.yarn/releases
8-
!.yarn/sdks
9-
!.yarn/versions

.husky/pre-commit

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
yarn exec lint-staged
1+
npx --no-install lint-staged

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 0 additions & 785 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

lint-staged.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
* @type {import('lint-staged').Configuration}
44
*/
55
export default {
6-
"*.{ts,tsx,js,jsx,json,css,scss,md}": () => "npx yarn lint:eslint",
7-
"*.{ts,tsx}": () => "npx yarn lint:tsc",
6+
"*.{ts,tsx,js,jsx,json,css,scss,md}": () => "npm run lint:eslint",
7+
"*.{ts,tsx}": () => "npm run lint:tsc",
88
};

0 commit comments

Comments
 (0)