54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"name": "js-utils",
|
|
"version": "1.0.0",
|
|
"description": "Javascript utils",
|
|
"main": "./src/index.js",
|
|
"babel": {
|
|
"presets": [
|
|
"@babel/preset-env"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"prebuild": "rimraf build",
|
|
"build": "npm run build:cjs && npm run build:copy-files",
|
|
"build:cjs": "babel src -d build --copy-files",
|
|
"build:copy-files": "node ./scripts/copy-files.js",
|
|
"precommit": "lint-staged",
|
|
"prepare": "husky install",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "--"
|
|
},
|
|
"keywords": [
|
|
"js-utils"
|
|
],
|
|
"author": "Tudor Stanciu",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.16.7",
|
|
"@babel/core": "^7.16.7",
|
|
"@babel/node": "^7.16.7",
|
|
"@babel/preset-env": "^7.16.7",
|
|
"rimraf": "^3.0.2",
|
|
"fs-extra": "^10.0.0",
|
|
"husky": "^7.0.4",
|
|
"lint-staged": "^12.2.2",
|
|
"prettier": "^2.5.1"
|
|
},
|
|
"prettier": {
|
|
"trailingComma": "none",
|
|
"tabWidth": 2,
|
|
"semi": true,
|
|
"singleQuote": false,
|
|
"arrowParens": "avoid"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.+(js|md|ts|css|sass|less|graphql|scss|json|vue)": [
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
}
|
|
}
|