Skip to content

Commit

Permalink
chore: switch from yarn to npm (#67)
Browse files Browse the repository at this point in the history
* chore: switch from yarn to npm

* chore: fix gh action

* chore: gh actions order

Co-authored-by: Justin Schrader <jschrader@newrelic.com>
  • Loading branch information
icd2k3 and icd2k3 committed Sep 19, 2022
1 parent fc4de66 commit 385bc41
Show file tree
Hide file tree
Showing 12 changed files with 21,145 additions and 9,318 deletions.
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.

0 comments on commit 385bc41

Please sign in to comment.