Skip to content

Commit

Permalink
build(npm): update package.json
Browse files Browse the repository at this point in the history
add build tools and commands for: compiling + formatting + testing + documenting
  • Loading branch information
web-mech committed Aug 14, 2024
1 parent d96888a commit 9ad2407
Show file tree
Hide file tree
Showing 2 changed files with 9,247 additions and 6 deletions.
45 changes: 39 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,32 @@
"name": "bad-words",
"version": "3.0.4",
"description": "A javascript filter for bad words",
"main": "./lib/badwords",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/index.d.ts"
}
},
"directories": {
"test": "test"
"test": "test",
"src": "src"
},
"scripts": {
"test": "./node_modules/.bin/mocha -R spec",
"docs": "./node_modules/.bin/documentation readme --section API ./lib/badwords.js"
"prettier": "prettier --write ./src",
"lint": "eslint ./src",
"lint:fix": "eslint --fix ./src",
"build": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json",
"prepublishOnly": "tsc",
"prepare": "husky && tsc",
"rc": "npm version prerelease && git push --follow-tags && npm publish",
"release": "standard-version && git push --follow-tags && npm publish",
"test": "ava",
"docs": "./node_modules/.bin/documentation readme --section API ./src/badwords.ts",
"typedoc": "typedoc --out docs ./src/badwords.ts"
},
"repository": {
"type": "git",
Expand All @@ -21,12 +40,26 @@
"filter"
],
"dependencies": {
"badwords-list": "^1.0.0"
"badwords-list": "^2.0.1-3"
},
"devDependencies": {
"@ava/typescript": "^5.0.0",
"@sindresorhus/tsconfig": "^6.0.0",
"ava": "^6.1.3",
"better-assert": "1.0.0",
"documentation": "^5.3.3",
"mocha": "^5.2.0"
"@eslint/js": "^9.8.0",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.0.0",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3",
"standard-version": "^9.5.0",
"typedoc": "^0.26.5",
"typescript": "^5.5.4",
"typescript-eslint": "^7.18.0"
},
"author": "Mike P.",
"license": "MIT",
Expand Down
Loading

0 comments on commit 9ad2407

Please sign in to comment.