Skip to content

Commit

Permalink
update ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Dec 14, 2023
1 parent 92aab9e commit 9a4bc11
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 58 deletions.
63 changes: 12 additions & 51 deletions package-lock.json

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

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"type": "module",
"version": "1.0.0",
"description": "Laravel localization bridge for your frontend.",
"main": "index.ts",
"main": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"tests": "vitest --run"
"tests": "vitest --run",
"build": "tsc"
},
"repository": {
"type": "git",
Expand All @@ -19,10 +21,12 @@
"homepage": "https://github.com/sergix44/laravel-translator-js#readme",
"devDependencies": {
"@types/node": "^20.10.4",
"glob": "^10.3.10",
"php-parser": "^3.1.5",
"typescript": "^5.3.3",
"vite": "^5.0.8",
"vitest": "^0.34.6"
},
"dependencies": {
"glob": "^10.3.10",
"php-parser": "^3.1.5"
}
}
16 changes: 13 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "bundler",
"outDir": "dist",
"resolveJsonModule": true,
"declaration": true,
"esModuleInterop": true,
"skipDefaultLibCheck": true,
"sourceMap": true
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
"node_modules",
"tests"
]
}

0 comments on commit 9a4bc11

Please sign in to comment.