Skip to content

Commit

Permalink
fix(build): added missing types
Browse files Browse the repository at this point in the history
+ fixed name of the package
  • Loading branch information
oxypomme committed Aug 3, 2023
1 parent 9088805 commit 3902768
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jspdf-md",
"name": "@ezpaarse-project/jspdf-md",
"version": "1.0.0",
"description": "jsPDF plugin for rendering MD into PDF in Node",
"main": "src/index.ts",
Expand All @@ -8,14 +8,15 @@
"default": "./dist/index.js"
}
},
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"prepare": "husky install",
"dev": "nodemon example/plugin/index.ts",
"build": "tsc",
"build:types": "tsc",
"lint": "eslint --fix ."
},
"lint-staged": {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */

/* Emit */
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
Expand All @@ -70,7 +70,7 @@
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
"declarationDir": "dist", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */

/* Interop Constraints */
Expand Down

0 comments on commit 3902768

Please sign in to comment.