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 yarn to npm #2131

Merged
merged 2 commits into from
Dec 11, 2024
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
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
Loading