chore: change build destination

This commit is contained in:
Dmitriy Pleshevskiy 2020-11-06 06:13:43 +03:00
parent 1d6640db8f
commit 5f50eba402
3 changed files with 11 additions and 14 deletions

4
.gitignore vendored
View file

@ -86,7 +86,7 @@ tags
# IDE # IDE
.idea/ .idea/
.c9/ .c9/
.vscode/
# build artifacts # build artifacts
src/**/*.js target/
src/**/*.d.ts

View file

@ -2,18 +2,15 @@
"name": "it-fsm", "name": "it-fsm",
"version": "1.0.7", "version": "1.0.7",
"description": "Simple finite state machine for nodejs", "description": "Simple finite state machine for nodejs",
"main": "./src/index.js", "main": "./target/index.js",
"types": "./src/index.d.ts", "types": "./target/index.d.ts",
"readme": "README.md", "readme": "README.md",
"files": [ "files": [
"src", "target"
"!*.spec.ts",
"!*.ts",
"*.d.ts"
], ],
"scripts": { "scripts": {
"test": "jest", "test": "jest",
"prepublishOnly": "tsc", "prepublishOnly": "rm -rf ./target && tsc",
"report-coverage": "cat coverage/lcov.info | coveralls" "report-coverage": "cat coverage/lcov.info | coveralls"
}, },
"repository": { "repository": {

View file

@ -15,13 +15,13 @@
"noImplicitReturns": true, "noImplicitReturns": true,
"noImplicitThis": true, "noImplicitThis": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"esModuleInterop": true, "esModuleInterop": true,
"outDir": "./src" "rootDir": "src",
"outDir": "target"
}, },
"exclude": [ "include": [
"node_modules", "src"
"coverage",
"tests"
] ]
} }