Skip to content

Commit

Permalink
build: fix test and lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanimodori committed Oct 24, 2022
1 parent da1b0fa commit 3956df2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NetscriptDefinitions.d.ts
package-lock.json
bin/
bin/
**/dist/
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@
"typings": "dist/typings/index.d.ts",
"scripts": {
"build": "vite build",
"test": "vitest run",
"test": "npm run lint && npm run test:spec",
"test:spec": "vitest run",
"test:playground": "vite-node ./src/entry.ts -- --cwd ./playground",
"format": "prettier --write \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,json}\"",
"postversion": "npm run build"
"postversion": "npm run build",
"lint": "npm run lint:ts && npm run lint:eslint && npm run lint:prettier",
"lint:ts": "tsc --noEmit",
"lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx .",
"lint:prettier": "prettier --check \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,json}\"",
"format": "prettier --write \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,json}\""
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 3956df2

Please sign in to comment.