storybook/docs/snippets/common/subpath-imports-config.json.mdx
2024-04-30 22:21:31 -06:00

24 lines
487 B
Plaintext

```jsonc
// package.json
{
"imports": {
"#api": {
"storybook": "./api.mock.ts",
"default": "./api.ts"
},
"#app/actions": {
"storybook": "./app/actions.mock.ts",
"default": "./app/actions.ts"
},
"#lib/session": {
"storybook": "./lib/session.mock.ts",
"default": "./lib/session.ts"
},
"#lib/db": {
"storybook": "./lib/db.mock.ts",
"default": "./lib/db.ts"
},
"#*": ["./*", "./*.ts", "./*.tsx"]
}
}
```