mirror of
https://github.com/Fdawgs/node-poppler.git
synced 2026-07-02 08:27:45 +08:00
build(tsconfig): add typescript declaration map (#689)
This commit is contained in:
+2
-1
@@ -4,4 +4,5 @@
|
||||
*
|
||||
!src/index.js
|
||||
!src/lib/**
|
||||
!types/index.d.ts
|
||||
!types/index.d.ts
|
||||
!types/index.d.ts.map
|
||||
+1
-1
@@ -51,7 +51,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build:docs": "jsdoc2md src/index.js > API.md --EOL posix",
|
||||
"build": "tsc",
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"lint:licenses": "licensee --errors-only --production",
|
||||
"lint:prettier:fix": "prettier . -w -u",
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"noEmit": false,
|
||||
"outDir": "types"
|
||||
},
|
||||
"include": ["src/index.js"]
|
||||
}
|
||||
+6
-5
@@ -3,14 +3,15 @@
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"lib": ["ES2024"],
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"outDir": "types",
|
||||
"noEmit": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"target": "ES2023"
|
||||
"target": "ES2024",
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/index.js"]
|
||||
"exclude": ["dist", "node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user