mirror of https://codeberg.org/pzp/pzp-keypair.git
another folder for .d.ts files
This commit is contained in:
parent
426d2b4535
commit
5f1df07ec2
|
@ -1,4 +1,4 @@
|
||||||
lib/**/*.d.ts
|
types
|
||||||
node_modules
|
node_modules
|
||||||
.nyc_output
|
.nyc_output
|
||||||
coverage
|
coverage
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"lib/**/*"
|
"lib/**/*",
|
||||||
|
"types/**/*"
|
||||||
],
|
],
|
||||||
|
"types": "types/index.d.ts",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=16"
|
||||||
},
|
},
|
||||||
|
@ -38,7 +40,7 @@
|
||||||
"typescript": "^5.0.2"
|
"typescript": "^5.0.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rm -f lib/**/*.d.ts && tsc",
|
"build": "tsc",
|
||||||
"test": "node --test",
|
"test": "node --test",
|
||||||
"format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"",
|
"format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"",
|
||||||
"format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"",
|
"format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"",
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"include": ["lib/**/*.js"],
|
"include": ["lib/**/*.js"],
|
||||||
"exclude": ["coverage/", "node_modules/", "test/"],
|
"exclude": ["coverage/", "node_modules/", "test/"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"outDir": "types",
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"emitDeclarationOnly": true,
|
"emitDeclarationOnly": true,
|
||||||
|
|
Loading…
Reference in New Issue