Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build setup with vite #49

Merged
merged 8 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dry-dots-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unused-i18n": patch
---

fix Read me file
5 changes: 5 additions & 0 deletions .changeset/strange-cobras-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unused-i18n": patch
---

build setup with vite
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Unused i18n

simplifies managing and cleaning up unused translation keys in localization files
Simplifies managing and cleaning up unused translation keys in localization files

## Features

Expand Down
28 changes: 12 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@
"type": "git",
"url": "https://github.com/Lawndlwd/unused-i18n.git"
},
"main": "dist/index.cjs",
"main": "dist/cli.cjs",
"types": "dist/index.d.ts",
"bin": {
"unused-i18n": "dist/index.cjs"
"unused-i18n": "dist/cli.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "rollup -c",
"build": "vite build --config vite.config.ts && pnpm run type:generate",
"type:generate": "tsc --declaration -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"start": "ts-node src/index.ts",
"start": "vite",
"test": "vitest",
"release": "pnpm build && pnpm changeset publish",
"changeset": "npx changeset",
Expand All @@ -35,20 +39,12 @@
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.3",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^14.18.63",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/coverage-istanbul": "^1.6.0",
"rollup": "^4.18.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"ts-node": "^9.1.1",
"tslib": "^2.6.2",
"typescript": "^4.9.5",
"vitest": "^1.6.0"
"typescript": "^5.2.2",
"vitest": "^1.6.0",
"vite": "^5.2.0"
},
"keywords": [
"i18n",
Expand All @@ -62,6 +58,6 @@
],
"engines": {
"node": ">=18.x",
"pnpm": ">=9.x"
"pnpm": ">=8.x"
}
}
Loading
Loading