Skip to content

Commit

Permalink
🔧 chore(package.json): add new scripts for build, linting, testing, a…
Browse files Browse the repository at this point in the history
…nd releasing

Added new scripts to the package.json file to improve the development workflow. The new scripts include prepack, build, test:dts, type-check, lint, lint:fix, release, and test. The prepack script runs the nyxr build command and cleans the package.json file. The build script runs the buildkarium command. The test:dts script runs the tsd command. The type-check script runs the tsc command with the --noEmit flag. The lint script runs the eslint command with the .ts and .js extensions. The lint:fix script runs the eslint command with the --fix flag. The release script runs the nyxr test command, generates a changelog with nyxlx changelogen, publishes the package with pnpm publish, and pushes the changes with git push --follow-tags. The test script runs the lint script
  • Loading branch information
nyxb committed May 21, 2023
1 parent 68f6203 commit ba39440
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
"default": "./dist/index.mjs"
}
},
"scripts": {
"prepack": "nyxr build && clean-pkg-json",
"build": "buildkarium",
"test:dts": "tsd",
"type-check": "tsc --noEmit",
"lint": "eslint --ext .ts,.js .",
"lint:fix": "eslint --ext .ts,.js . --fix",
"release": "nyxr test && nyxlx changelogen --release && pnpm publish && git push --follow-tags",
"test": "nyxr lint && vitest run --coverage"
},
"files": [
"dist"
],
Expand All @@ -43,4 +53,4 @@
"typed",
"typescript"
]
}
}

0 comments on commit ba39440

Please sign in to comment.