diff --git a/.gitignore b/.gitignore index e7a3afa..4f530c3 100644 --- a/.gitignore +++ b/.gitignore @@ -86,7 +86,7 @@ tags # IDE .idea/ .c9/ +.vscode/ # build artifacts -src/**/*.js -src/**/*.d.ts +target/ diff --git a/package.json b/package.json index 0794d89..d1a6eca 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,15 @@ "name": "it-fsm", "version": "1.0.7", "description": "Simple finite state machine for nodejs", - "main": "./src/index.js", - "types": "./src/index.d.ts", + "main": "./target/index.js", + "types": "./target/index.d.ts", "readme": "README.md", "files": [ - "src", - "!*.spec.ts", - "!*.ts", - "*.d.ts" + "target" ], "scripts": { "test": "jest", - "prepublishOnly": "tsc", + "prepublishOnly": "rm -rf ./target && tsc", "report-coverage": "cat coverage/lcov.info | coveralls" }, "repository": { diff --git a/tsconfig.json b/tsconfig.json index 870495a..d14e20f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,13 +15,13 @@ "noImplicitReturns": true, "noImplicitThis": true, "noUnusedParameters": true, + "strict": true, "strictNullChecks": true, "esModuleInterop": true, - "outDir": "./src" + "rootDir": "src", + "outDir": "target" }, - "exclude": [ - "node_modules", - "coverage", - "tests" + "include": [ + "src" ] }