refactor: build system

This commit is contained in:
2023-03-22 11:45:30 +01:00
parent 4df19e8c20
commit 8cb9285462
427 changed files with 3978 additions and 9810 deletions

28
package-template.json Normal file
View File

@@ -0,0 +1,28 @@
{
"scripts": {
"build": "tsup",
"format:": "prettier .",
"format:fix": "prettier . --write",
"lint": "eslint --ext .ts src/",
"lint:fix": "eslint --ext .ts src/",
"test": "nyc mocha 'test/**/*.spec.ts'"
},
"nyc": {
"extends": "@openstapps/nyc-config"
},
"tsup": {
"entry": [
"src/index.ts"
],
"sourcemap": true,
"clean": true,
"format": "esm",
"outDir": "lib"
},
"prettier": "@openstapps/prettier-config",
"eslintConfig": {
"extends": [
"@openstapps"
]
}
}