Skip to content

Commit

Permalink
chore: init tsc
Browse files Browse the repository at this point in the history
Signed-off-by: Timur Bolotov <bolotovtmr@gmail.com>
  • Loading branch information
timursaurus committed Aug 12, 2023
1 parent eeed81a commit 80bcb02
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"license-checker": "license-checker --production --onlyAllow='MIT;Apache-2.0;Apache1.1;ISC;BSD-3-Clause;BSD-2-Clause'",
"build-esm": "npx gen-esm-wrapper . index.mjs && eslint --fix index.mjs"
"build-esm": "npx gen-esm-wrapper . index.mjs && eslint --fix index.mjs",
"build": "tsc"
},
"author": "opensearch-project",
"original-author": {
Expand Down
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"allowJs": true,
"downlevelIteration": true,
"esModuleInterop": true,
"incremental": true,
"lib": ["ES2015"],
"module": "commonjs",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"preserveConstEnums": true,
"removeComments": true,
"resolveJsonModule": true,
"target": "es5"
},
"exclude": ["node_modules/", "**/*.test.ts"],
"include": ["lib/**/*", "api/**/*", "index.js"]
}

0 comments on commit 80bcb02

Please sign in to comment.