79 lines
2.2 KiB
JSON
79 lines
2.2 KiB
JSON
{
|
|
"name": "@rakh/utils",
|
|
"version": "2.0.22",
|
|
"main": "dist/commonjs/index.js",
|
|
"types": "dist/commonjs/index.d.ts",
|
|
"module": "dist/es/index.js",
|
|
"jsnext:main": "dist/es/index.js",
|
|
"files": [
|
|
"dist/**/*",
|
|
"docs/**/*",
|
|
"readme.MD"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/es/index.d.ts",
|
|
"default": "./dist/es/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/index.d.ts",
|
|
"default": "./dist/commonjs/index.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"release": "node ./scripts/create-index.js && vik patch -t",
|
|
"clean": "rm -rf dist",
|
|
"prepare": "npm run clean && npm run compile",
|
|
"test": "jest --coverage && npm run compile",
|
|
"compile:es": "tsc --declaration true --declarationMap true --module esnext --outDir './dist/es'",
|
|
"compile:commonjs": "tsc --declaration true --declarationMap true --module commonjs --outDir './dist/commonjs'",
|
|
"compile": "npm run clean && npm run compile:es && npm run compile:commonjs && npm run document",
|
|
"document": "./node_modules/.bin/typedoc --plugin typedoc-plugin-markdown --publicPath ./docs/ --out docs ./ts-src && cp ./docs/modules.md ./readme.MD"
|
|
},
|
|
"author": "Martin Donnelly",
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.5",
|
|
"@types/sinon": "^10.0.18",
|
|
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
"@typescript-eslint/parser": "^6.7.4",
|
|
"eslint": "^8.39.0",
|
|
"grunt": "^1.6.1",
|
|
"jest": "^29.7.0",
|
|
"marked": "^9.0.3",
|
|
"prettier": "^3.0.3",
|
|
"save": "^2.9.0",
|
|
"sinon": "^16.0.0",
|
|
"ts-jest": "^29.1.1",
|
|
"ts-node": "^10.9.1",
|
|
"typedoc": "^0.25.1",
|
|
"typedoc-plugin-markdown": "^3.16.0",
|
|
"typescript": "^5.2.2",
|
|
"vik": "^0.4.0"
|
|
},
|
|
"description": "",
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.tsx?$": "ts-jest"
|
|
},
|
|
"testRegex": "/ts-src/.*.test.(jsx?|tsx?)$",
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"/dist/"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"ts-src/**/*.tsx",
|
|
"ts-src/**/*.ts"
|
|
],
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"node"
|
|
]
|
|
}
|
|
} |