Skip to content

Commit

Permalink
Merge pull request #5 from webdeveric/dev
Browse files Browse the repository at this point in the history
Miscellaneous updates
  • Loading branch information
webdeveric authored Nov 19, 2023
2 parents 5137a9c + b3ae133 commit 6ebfe3e
Show file tree
Hide file tree
Showing 9 changed files with 1,710 additions and 1,603 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Node.js CI

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -15,15 +15,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm coverage
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: pnpm coverage
43 changes: 21 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"url": "https://github.com/webdeveric/esbuild-plugin-environment/issues"
},
"homepage": "https://github.com/webdeveric/esbuild-plugin-environment",
"type": "commonjs",
"type": "module",
"main": "./dist/cjs/plugin.js",
"types": "./dist/types/plugin.d.ts",
"packageManager": "pnpm@7.26.2",
"packageManager": "pnpm@8.10.5",
"engines": {
"node": ">=16.0.0"
},
Expand All @@ -47,45 +47,44 @@
"scripts": {
"lint": "eslint --fix ./*{js,cjs,mjs,mts} ./src",
"clean": "rimraf ./dist/",
"prebuild": "npm run clean",
"prebuild": "pnpm clean",
"build:cjs": "tsc -p ./tsconfig.cjs.json",
"build:mjs": "tsc -p ./tsconfig.mjs.json",
"postbuild:cjs": "echo '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
"postbuild:mjs": "echo '{\"type\":\"module\"}' > ./dist/mjs/package.json",
"build": "npm run build:cjs && npm run build:mjs",
"build": "pnpm build:cjs && pnpm build:mjs",
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.project-files.json",
"spellcheck": "cspell --no-progress './{.github,src,test}/**/*.{ts,js,json}' './*.{md,js}' './package.json'",
"format": "prettier --write ./*.{js,json,md} ./src/ ./test/ --no-error-on-unmatched-pattern",
"test": "vitest -c vitest.config.mts",
"coverage": "vitest run -c vitest.config.mts --coverage",
"prepack": "npm run build",
"prepublishOnly": "npm run typecheck && npm run spellcheck && npm run lint && npm run coverage",
"preinstall": "npx check-package-manager --info",
"prepack": "pnpm build",
"prepublishOnly": "pnpm typecheck && pnpm spellcheck && pnpm lint && pnpm coverage",
"prepare": "husky install"
},
"prettier": "@webdeveric/prettier-config",
"peerDependencies": {
"esbuild": ">=0.15"
},
"dependencies": {
"esbuild-plugin-define": "^0.3.0"
"esbuild-plugin-define": "^0.4.0"
},
"devDependencies": {
"@types/node": "^18.11.18",
"@vitest/coverage-c8": "^0.28.3",
"@webdeveric/eslint-config-ts": "^0.6.0",
"@types/node": "^18.18.10",
"@vitest/coverage-v8": "^0.34.6",
"@webdeveric/eslint-config-ts": "^0.7.1",
"@webdeveric/prettier-config": "^0.2.0",
"cspell": "^6.19.2",
"esbuild": "^0.17.5",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"cspell": "^8.0.0",
"esbuild": "^0.19.6",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.3",
"rimraf": "^4.1.2",
"typescript": "^4.9.5",
"vitest": "^0.28.3"
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
}
}
Loading

0 comments on commit 6ebfe3e

Please sign in to comment.