diff --git a/packages/nat/package.json b/packages/nat/package.json index 5a126e0e3d..986a8aed66 100644 --- a/packages/nat/package.json +++ b/packages/nat/package.json @@ -10,9 +10,11 @@ }, "scripts": { "build": "exit 0", + "build:types": "tsc --build tsconfig.build.json", + "clean:types": "git clean -f '*.d.ts*'", "test": "ava test/**/test-*.js", "lint-fix": "eslint --fix", - "lint-check": "eslint" + "lint": "tsc" }, "repository": { "type": "git", diff --git a/packages/nat/tsconfig.build.json b/packages/nat/tsconfig.build.json new file mode 100644 index 0000000000..3e3877ed37 --- /dev/null +++ b/packages/nat/tsconfig.build.json @@ -0,0 +1,12 @@ +{ + "extends": [ + "./tsconfig.json", + "../../tsconfig-build-options.json" + ], + "compilerOptions": { + "allowJs": true + }, + "exclude": [ + "test/" + ] +} diff --git a/packages/nat/tsconfig.json b/packages/nat/tsconfig.json new file mode 100644 index 0000000000..f77b8008a1 --- /dev/null +++ b/packages/nat/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.eslint-base.json", + "include": [ + "*.js", + "*.ts", + "src/**/*.js", + "src/**/*.ts" + ] +}