create-node-lib
Version:
Scaffolding out a Node.js library module
113 lines (112 loc) • 3.11 kB
JSON
{
"name": "<%= projectName %>",
"version": "0.0.1",
"description": "<%= description %>",
"types": "dist/main.d.mts",
"type": "module",
"bin": {
"<%= projectName %>": "./dist/bin/cli.cjs"
},
"exports": {
".": {
"import": {
"types": "./dist/main.d.mts",
"default": "./dist/main.mjs"
},
"require": {
"types": "./dist/main.d.cts",
"default": "./dist/main.cjs"
},
"default": "./dist/main.mjs"
},
"./dist/*": {
"types": "./dist/*.d.mts",
"import": "./dist/*.mjs",
"require": "./dist/*.cjs"
}
},
"engines": {
"node": ">=24.0.0"
},
"files": [
"dist",
"src",
"bin"
],
"scripts": {
"start": "tsx src/bin/cli.ts",
"build": "tsc && tsdown",
"lint": "eslint . && npm run lint:markdown",
"lint:markdown": "markdownlint-cli -c .github/.markdownlint.yml -i 'apm_modules/**' -i '.git' -i '__tests__' -i '.github' -i '.changeset' -i 'CODE_OF_CONDUCT.md' -i 'CHANGELOG.md' -i 'docs/**' -i 'node_modules' -i 'dist' '**/**.md'",
"lint:markdown:fix": "markdownlint-cli -c .github/.markdownlint.yml -i 'apm_modules/**' -i '.git' -i '__tests__' -i '.github' -i '.changeset' -i 'CODE_OF_CONDUCT.md' -i 'CHANGELOG.md' -i 'docs/**' -i 'node_modules' -i 'dist' '**/**.md' --fix",
"lint:fix": "eslint . --fix",
"test": "c8 node --import tsx --test __tests__/**/*.test.ts",
"test:watch": "c8 node --import tsx --test --watch __tests__/**/*.test.ts",
"coverage:view": "open coverage/lcov-report/index.html",
"prepare": "husky",
"version": "changeset version",
"release": "changeset publish",
"release:create": "changeset && git add .changeset && git commit -m \"chore: release\" && git push origin HEAD --no-verify"
},
"author": {
"name": "<%= author %>",
"email": "<%= email %>",
"url": "git+https://github.com/<%= username %>"
},
"publishConfig": {
"provenance": true,
"access": "public"
},
"license": "Apache-2.0",
"keywords": [
"<%= keywords %>"
],
"homepage": "<%= projectRepository %>",
"bugs": {
"url": "<%= projectRepository %>/issues"
},
"repository": {
"type": "git",
"url": "<%= projectRepository %>.git"
},
"devDependencies": {
"@changesets/changelog-github": "^0.6.0",
"@changesets/cli": "^2.31.0",
"@eslint/js": "^10.0.1",
"@types/node": "^25.5.0",
"c8": "^11.0.0",
"eslint": "^10.2.1",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-security": "^4.0.0",
"husky": "^9.0.11",
"lint-staged": "^16.2.7",
"markdownlint-cli": "0.48.0",
"tsdown": "^0.21.10",
"tsx": "^4.19.4",
"typescript": "^5.5.3",
"typescript-eslint": "^8.59.0",
"validate-conventional-commit": "^1.0.4"
},
"lint-staged": {
"**/*.{js,json}": [
"npm run lint:fix"
]
},
"c8": {
"exclude": [
"dist/**",
"coverage/**",
"__tests__/**",
"**/*.test.ts",
"**/*.test.js"
],
"include": [
"src/**"
],
"reporter": [
"text",
"lcov",
"html"
]
}
}