Skip to content

Commit

Permalink
chore: fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Sep 11, 2024
1 parent 8531f83 commit 9b7cc38
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"preinstall": "pnpx only-allow pnpm",
"prepare": "pnpm simple-git-hooks",
"test": "vitest",
"test:build": "pnpm run --r --parallel test:build",
"test:build": "bun scripts/generateProxyPackages.ts && pnpm run --r --parallel test:build",
"test:cli": "vitest --project @wagmi/cli",
"test:core": "vitest --project @wagmi/core",
"test:create-wagmi": "vitest --project create-wagmi",
Expand Down Expand Up @@ -111,7 +111,10 @@
"entry": "src/cli.ts!"
},
"packages/react": {
"entry": "src/exports/{actions,chains,codegen,connectors,experimental,index,query}.ts!",
"entry": [
"src/exports/{actions,chains,codegen,connectors,experimental,index,query}.ts!",
"src/exports/actions/experimental.ts!"
],
"ignore": ["test/setup.ts"]
},
"packages/test": {
Expand All @@ -121,7 +124,10 @@
]
},
"packages/vue": {
"entry": "src/exports/{actions,chains,connectors,index,nuxt,query}.ts!",
"entry": [
"src/exports/{actions,chains,connectors,index,nuxt,query}.ts!",
"src/exports/actions/experimental.ts!"
],
"ignore": ["src/nuxt/runtime/*", "test/setup.ts"],
"ignoreDependencies": ["nuxt"]
},
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"default": "./dist/esm/exports/actions.js"
},
"./actions/experimental": {
"types": "./dist/types/exports/actions.experimental.d.ts",
"default": "./dist/esm/exports/actions.experimental.js"
"types": "./dist/types/exports/actions/experimental.d.ts",
"default": "./dist/esm/exports/actions/experimental.js"
},
"./chains": {
"types": "./dist/types/exports/chains.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from 'vitest'

import * as experimentalActions from './actions.experimental.js'
import * as experimentalActions from './experimental.js'

test('exports', () => {
expect(Object.keys(experimentalActions)).toMatchInlineSnapshot(`
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"default": "./dist/esm/exports/actions.js"
},
"./actions/experimental": {
"types": "./dist/types/exports/actions.experimental.d.ts",
"default": "./dist/esm/exports/actions.experimental.js"
"types": "./dist/types/exports/actions/experimental.d.ts",
"default": "./dist/esm/exports/actions/experimental.js"
},
"./chains": {
"types": "./dist/types/exports/chains.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from 'vitest'

import * as experimentalActions from './actions.experimental.js'
import * as experimentalActions from './experimental.js'

test('exports', () => {
expect(Object.keys(experimentalActions)).toMatchInlineSnapshot(`
Expand Down

0 comments on commit 9b7cc38

Please sign in to comment.