Skip to content

Commit

Permalink
feat: add nuxt-vitest re-exports (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 20, 2023
1 parent fcff1f5 commit 1598543
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 54 deletions.
5 changes: 5 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ export default defineBuildConfig({
entries: [
'src/index',
'src/experimental',
'src/config',
'src/experimental',
'src/module',
'src/runtime-utils',
'src/vitest-environment',
{ input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm' }
],
externals: [
Expand Down
1 change: 1 addition & 0 deletions config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/config'
1 change: 1 addition & 0 deletions module.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/module'
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.mjs",
"./experimental": "./dist/experimental.mjs"
"./config": "./dist/config.mjs",
"./experimental": "./dist/experimental.mjs",
"./module": "./dist/module.mjs",
"./runtime-utils": "./dist/runtime-utils.mjs",
"./vitest-environment": "./dist/vitest-environment.mjs"
},
"files": [
"dist",
"experimental.d.ts"
"config.d.ts",
"experimental.d.ts",
"module.d.ts",
"runtime-utils.d.ts",
"vitest-environment.d.ts"
],
"scripts": {
"lint": "eslint --ext .vue,.ts,.js,.mjs .",
Expand All @@ -32,9 +40,11 @@
"defu": "^6.1.3",
"execa": "^8.0.1",
"get-port-please": "^3.1.1",
"nuxt-vitest": "^0.11.5",
"ofetch": "^1.3.3",
"pathe": "^1.1.1",
"ufo": "^1.3.2"
"ufo": "^1.3.2",
"vitest-environment-nuxt": "^0.11.5"
},
"devDependencies": {
"@jest/globals": "29.7.0",
Expand Down
Loading

0 comments on commit 1598543

Please sign in to comment.