diff --git a/.gitignore b/.gitignore index ad8c7ac..a503240 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ !jest.config.js *.d.ts +src/**/*.js +test/**/*.js node_modules # Compiled code lib/ diff --git a/.npmignore b/.npmignore index 43c0181..7f57bb6 100644 --- a/.npmignore +++ b/.npmignore @@ -7,7 +7,7 @@ node_modules .cdk.staging cdk.out coverage/ -test/coverage.xml +test/ test.ts .git/ .github/ diff --git a/package.json b/package.json index 249fc6e..c9cc02c 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,11 @@ ], "scripts": { "build": "tsc --project tsconfig.build.json", + "test-build": "tsc --project tsconfig.test.json", "watch": "tsc -w", "test": "jest --ci --reporters=default --coverage", "integ": "integ-runner", - "integ-local": "npm run build && integ-runner", + "integ-local": "npm run test-build && integ-runner", "prepare": "husky install", "semantic-release": "semantic-release" }, diff --git a/tsconfig.json b/tsconfig.json index 70a9049..420243c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,5 @@ "resolveJsonModule": true, "typeRoots": ["./node_modules/@types"] }, - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"] } diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000..b5fe997 --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target":"ES2018", + "module": "commonjs", + "lib": ["es2016", "es2017.object", "es2017.string"], + "declaration": true, + "strict": true, + "noImplicitAny": false, + "strictNullChecks": true, + "noImplicitThis": true, + "alwaysStrict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": false, + "inlineSourceMap": true, + "inlineSources": true, + "experimentalDecorators": true, + "strictPropertyInitialization":false, + "resolveJsonModule": true, + "typeRoots": ["./node_modules/@types"] + }, + "include": ["test/**/*"] +}