Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch from yarn to npm #67

Merged
merged 3 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 7 additions & 25 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install
uses: borales/actions-yarn@v2.1.0
with:
cmd: install
- name: yarn build
uses: borales/actions-yarn@v2.1.0
with:
cmd: build
- name: yarn lint
uses: borales/actions-yarn@v2.1.0
with:
cmd: lint
- name: yarn types
uses: borales/actions-yarn@v2.1.0
with:
cmd: types
- name: yarn test
uses: borales/actions-yarn@v2.1.0
with:
cmd: test
- name: yarn test-build
uses: borales/actions-yarn@v2.1.0
with:
cmd: test-build
- run: npm ci
- run: npm run build --if-present
- run: npm run types
- run: npm run lint
- run: npm run test
- run: npm run test-build
- name: Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/node_modules
/dist/*
/yarn-error.log
/coverage
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
.DS_Store
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
npx commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn types && yarn lint && yarn test
npm run types && npm run lint && npm run test
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn build && yarn test-build
npm run build && npm run test-build
4 changes: 0 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
.husky/
.npmignore
.nvmrc
.yarn/
.yarnrc.yml
CONTRIBUTING.md
MIGRATIONS.md
babel.config.js
Expand All @@ -20,5 +18,3 @@ rollup.config.js
scripts/
src/
tsconfig.json
yarn-error.log
yarn.lock
77 changes: 0 additions & 77 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.3.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

Loading