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

View File

@@ -2,25 +2,47 @@
"name": "@openstapps/collection-utils",
"version": "2.1.0",
"type": "module",
"license": "GPL-3.0-only",
"main": "lib/index.js",
"scripts": {
"build": "rimraf lib && tsc",
"build": "tsup --dts",
"format": "prettier .",
"format:fix": "prettier --write .",
"test": "mocha --require ts-node/register test/*.spec.ts"
"lint": "eslint --ext .ts src/",
"lint:fix": "eslint --fix --ext .ts src/",
"test": "nyc mocha 'test/**/*.spec.ts'"
},
"devDependencies": {
"@openstapps/configuration": "workspace:*",
"@openstapps/eslint-config": "workspace:*",
"@openstapps/nyc-config": "workspace:*",
"@openstapps/prettier-config": "workspace:*",
"@openstapps/tsconfig": "workspace:*",
"@types/chai": "4.3.4",
"@types/mocha": "10.0.1",
"@types/node": "18.15.3",
"chai": "4.3.7",
"eslint": "8.33.0",
"mocha": "10.2.0",
"prettier": "2.8.3",
"rimraf": "4.4.0",
"ts-node": "10.9.1",
"tsup": "6.7.0",
"typescript": "4.8.4"
}
},
"tsup": {
"entry": [
"src/index.ts"
],
"sourcemap": true,
"clean": true,
"format": "esm",
"outDir": "lib"
},
"prettier": "@openstapps/prettier-config",
"eslintConfig": {
"extends": [
"@openstapps"
]
},
"nyc": {
"extends": "@openstapps/nyc-config"
},
"exports": "./lib/index.js"
}