-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: compile with tsc instead of babel
Release-As: 0.2.0
- Loading branch information
Showing
4 changed files
with
26 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ npm-debug.log | |
.vscode | ||
|
||
node_modules | ||
lib | ||
build | ||
|
||
.cache/* | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |