diff --git a/package.json b/package.json index 64f0a60..797a9ed 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,13 @@ "name": "romulus-js", "version": "1.0.0", "description": "An implementation of the Romulus-M cryptography specification.", - "main": "index.js", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "lint": "ts-standard", "test": "jest", - "build": "tsc" + "build": "tsc", + "postinstall": "tsc" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index c38d8d8..f48a496 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,11 @@ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ "strict": true, /* Enable all strict type-checking options. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ + "declaration": true }, - "exclude": ["tests"] + "exclude": [ + "tests", + "dist" + ] }