Skip to content

Commit

Permalink
build: compile with tsc instead of babel
Browse files Browse the repository at this point in the history
Release-As: 0.2.0
  • Loading branch information
tsufiev committed Feb 7, 2022
1 parent 79c8ae0 commit 22cf7ed
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm-debug.log
.vscode

node_modules
lib
build

.cache/*

133 changes: 6 additions & 127 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,31 @@
"description": "i18n library for Yandex Cloud UI services",
"version": "0.1.1",
"license": "MIT",
"main": "lib/index.js",
"main": "build/esm/index.js",
"repository": "[email protected]:yandex-cloud/i18n",
"scripts": {
"build": "babel src --out-dir lib",
"build": "tsc",
"lint": "eslint src/*",
"prepublish": "rm -rf lib && npm run build",
"prepublish": "rm -rf build && npm run build",
"test": "exit 0"
},
"files": [
"example/keysets",
"example/index",
"src/index",
"lib/index",
"build/esm/index",
"index.d.ts"
],
"types": "index.d.ts",
"peerDependencies": {
"@babel/runtime": "^7.4.5"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"eslint": "^8.0.0",
"@yandex-cloud/eslint-config": "^1.0.0"
"@yandex-cloud/eslint-config": "^1.0.0",
"@yandex-cloud/tsconfig": "^1.0.0",
"typescript": "^4.4.4"
}
}
12 changes: 12 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "@yandex-cloud/tsconfig/tsconfig",
"compilerOptions": {
"allowJs": true,
"outDir": "build/esm",
"module": "esnext",
"jsx": "react",
"baseUrl": ".",
"importHelpers": true,
},
"include": ["src/*.js"]
}

0 comments on commit 22cf7ed

Please sign in to comment.