diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 31b61a4..7e1d047 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,17 @@ { "name": "nork", - "version": "3.0.0", + "version": "3.0.1", "description": "The best node.js 'framework' :)", "main": "dist/app.js", "bin": "dist/app.js", + "types": "dist/app.d.ts", "scripts": { "start": "npm run start:prod", "start:dev": "ts-node src/app.ts", "start:prod": "node dist/app.js", "build": "rimraf dist && tsc -p .", - "test": "mocha --config .mocharc.json --watch src/**/*.test.ts" + "test": "mocha --config .mocharc.json --watch src/**/*.test.ts", + "prepublish": "rimraf dist && tsc -p ." }, "keywords": [ "node", diff --git a/tsconfig.json b/tsconfig.json index 75e90d9..955dfe0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,13 @@ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ "skipLibCheck": true, /* Skip type checking all .d.ts files. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + "declaration": true, }, "exclude": [ - "_old" + "_old", + "node_modules", + "src/make-files", + "src/skeletons", + "src/tests" ] }