diff --git a/package.json b/package.json index 225119f..8b4902c 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,18 @@ "name": "react-signature-canvas", "version": "1.1.0-alpha.1", "description": "A React wrapper component around signature_pad. 100% test coverage, types, examples, & more. Unopinionated and heavily updated fork of react-signature-pad", - "source": "src/index.tsx", - "main": "dist/index.umd.min.js", - "module": "dist/index.mjs", + "source": "./src/index.tsx", + "main": "./dist/index.umd.min.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "exports": { "require": "./dist/index.umd.min.js", "default": "./dist/index.mjs", "types": "./dist/index.d.ts" }, - "typings": "dist/index.d.ts", "files": [ - "src/", - "dist/" + "./src/", + "./dist/" ], "author": "Anton Gilgur", "license": "Apache-2.0", diff --git a/tsconfig.build.json b/tsconfig.build.json index d2c4fda..0e2bc9e 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,7 +2,7 @@ // tsconfig.json is used for type-checking _all_ files, tsconfig.build.json is just used for the build "extends": "./tsconfig.json", // allowlist of files to build - "files": ["src/index.tsx", "typings/trim-canvas.d.ts"], + "files": ["src/index.tsx", "types/trim-canvas.d.ts"], "compilerOptions": { // override the base "noEmit": false, diff --git a/typings/trim-canvas.d.ts b/types/trim-canvas.d.ts similarity index 100% rename from typings/trim-canvas.d.ts rename to types/trim-canvas.d.ts