Skip to content

Commit

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

* fix command
  • Loading branch information
domoritz authored Dec 11, 2024
1 parent 113e33b commit ca95df1
Show file tree
Hide file tree
Showing 8 changed files with 10,584 additions and 6,794 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
cache: "yarn"
cache: "npm"
node-version: 22
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install Node dependencies
run: yarn --frozen-lockfile
run: npm ci

- name: Create release
run: npm run release
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
cache: "npm"

- name: Install Node dependencies
run: yarn --frozen-lockfile
run: npm ci

- name: Lint
run: yarn lint
run: npm run lint

- name: Build
run: yarn build
run: npm run build

- name: Test coverage
run: yarn jest test/ --collectCoverage=true
run: npx jest test/ --collectCoverage=true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ node_modules/

# Other package managers
pnpm-lock.yaml
package-lock.json
yarn.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,11 @@ fs.writeFile(outputPath, schemaString, (err) => {

## Run locally

`yarn --silent run run --path 'test/valid-data/type-mapped-array/*.ts' --type 'MyObject'`
`npm run --silent run -- --path 'test/valid-data/type-mapped-array/*.ts' --type 'MyObject'`

## Debug

`yarn --silent run debug --path 'test/valid-data/type-mapped-array/*.ts' --type 'MyObject'`
`npm run --silent debug -- --path 'test/valid-data/type-mapped-array/*.ts' --type 'MyObject'`

And connect via the debugger protocol.

Expand Down
Loading

0 comments on commit ca95df1

Please sign in to comment.