Skip to content
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
11 changes: 7 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v3
with:
node-version: 20.11.0
node-version: 22.14.0
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- run: yarn clean
- run: yarn build
- run: pnpm i --frozen-lockfile
- run: pnpm clean
- run: pnpm build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v3
with:
node-version: 20.11.0
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn pretty:check
- run: yarn test
node-version: 22.14.0
- run: pnpm i --frozen-lockfile
- run: pnpm lint
- run: pnpm pretty:check
- run: pnpm test
195 changes: 0 additions & 195 deletions jest.config.js

This file was deleted.

31 changes: 18 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qnaplus/scraper",
"version": "2.0.3",
"version": "3.0.0",
"description": "Utility package to scrape questions from the VEX Robotics Q&A.",
"main": "dist/index.js",
"repository": {
Expand All @@ -10,39 +10,44 @@
"license": "GPL-3.0",
"scripts": {
"build": "tsc",
"build:clean": "yarn clean && yarn build",
"test": "jest",
"build:clean": "pnpm clean && pnpm build",
"test": "vitest",
"clean": "rimraf dist",
"reset": "yarn clean && rimraf node_modules",
"reset": "pnpm clean && rimraf node_modules",
"lint": "eslint src/**",
"lint:fix": "yarn lint --fix",
"neat": "yarn lint:fix && yarn pretty",
"lint:fix": "pnpm lint --fix",
"neat": "pnpm lint:fix && pnpm pretty",
"pretty": "prettier . --write",
"pretty:check": "prettier . --check"
},
"dependencies": {
"@crawlee/core": "^3.11.5",
"cheerio": "^1.0.0",
"got-scraping": "^4.0.6",
"node-pdf-parser": "^1.0.3",
"pino": "^9.4.0"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@types/jest": "^29.5.13",
"eslint": "^9.12.0",
"jest": "^29.6.2",
"pino-pretty": "^11.2.2",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.5",
"typescript": "5.5.4",
"typescript-eslint": "^8.9.0"
"typescript-eslint": "^8.9.0",
"vitest": "^3.0.8"
},
"volta": {
"node": "20.11.0",
"yarn": "1.22.22"
"node": "22.14.0",
"pnpm": "10.6.2"
},
"files": [
"dist"
]
],
"pnpm": {
"onlyBuiltDependencies": [
"canvas",
"esbuild"
]
}
}
Loading