Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Oct 25, 2023
1 parent 8352789 commit 71be11a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"CHANGELOG.md",
"README.md",
"dist",
"i18n.d.ts",
"virtual.d.ts"
],
"main": "./dist/index.cjs",
Expand All @@ -36,6 +35,9 @@
"types": "./dist/client/index.d.ts",
"require": "./dist/client/index.cjs",
"import": "./dist/client/index.js"
},
"./virtual": {
"types": "./virtual.d.ts"
}
},
"typesVersions": {
Expand All @@ -46,15 +48,14 @@
}
},
"scripts": {
"dev": "tsup --watch",
"dev": "simple-git-hooks && tsup --watch",
"build": "tsup",
"build:pages": "pnpm run build && cd playground/spa && pnpm run build",
"test": "run-s test:unit test:serve test:build",
"test:unit": "vitest run",
"test:serve": "vitest run -c vitest.config.e2e.ts",
"test:build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpx simple-git-hooks",
"lint": "eslint .",
"up": "taze -I -w -r",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
Expand Down Expand Up @@ -100,7 +101,7 @@
"typescript": "^5.2.2",
"vite-plugin-i18n-detector": "workspace:*",
"vitest": "^0.34.5",
"vitest-e2e": "^0.0.5"
"vitest-e2e": "^0.0.6"
},
"engines": {
"node": ">=16.0.0"
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

4 changes: 3 additions & 1 deletion virtual.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
declare module 'virtual:i18n-helper' {
export default Record<string, () => Promise<{ default: Record<string, any> | undefined }>>
type I18nHelper = Record<string, () => Promise<{ default: Record<string, any> | undefined }>>
const i18nHelper: I18nHelper
export default i18nHelper
}

0 comments on commit 71be11a

Please sign in to comment.