Skip to content

Commit fc9ba0c

Browse files
committed
added declarations
1 parent 05cb2ea commit fc9ba0c

File tree

5 files changed

+53
-51
lines changed

5 files changed

+53
-51
lines changed

package-lock.json

Lines changed: 48 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-typescript-nodejs-module",
3-
"version": "1.0.1",
3+
"version": "1.1.2",
44
"description": "This example is about a simple Typescript nodejs module that can be published to npmjs.org or other NPM registries. It should help you to quickly start a new Typescript project with all important aspects of a project, such as testing.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

tsconfig.dev.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"exclude": ["**/*.spec.ts"],
44
"compilerOptions": {
55
"sourceMap": true,
6-
"outDir": "dist"
6+
"outDir": "dist",
7+
"declarationMap": true,
78
}
89
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
4343

4444
/* Emit */
45-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
45+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
4646
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
4747
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
4848
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */

tsconfig.prod.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"exclude": ["**/*.spec.ts"],
44
"compilerOptions": {
55
"sourceMap": false,
6+
"declarationMap": false,
67
"outDir": "dist"
78
}
89
}

0 commit comments

Comments
 (0)