Skip to content

Commit 025d22e

Browse files
authored
chore(common): fix scripts to run templates in dev (#412)
* chore(common): fix scripts to run templates in dev * fix demo
1 parent 6954901 commit 025d22e

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

packages/demo/vite.config.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ export default defineConfig({
1818
process.env.NODE_ENV === 'production'
1919
? []
2020
: [
21-
{
22-
find: /^@storyblok\/field-plugin$/,
23-
replacement: path.resolve(
24-
__dirname,
25-
'../field-plugin/src/index.ts',
26-
),
27-
},
28-
{
29-
find: /^@storyblok\/field-plugin\/react$/,
30-
replacement: path.resolve(
31-
__dirname,
32-
'../field-plugin/helpers/react/src/index.ts',
33-
),
34-
},
35-
],
21+
{
22+
find: /^@storyblok\/field-plugin$/,
23+
replacement: path.resolve(
24+
__dirname,
25+
'../field-plugin/src/index.ts',
26+
),
27+
},
28+
{
29+
find: /^@storyblok\/field-plugin\/react$/,
30+
replacement: path.resolve(
31+
__dirname,
32+
'../lib-helpers/react/src/index.ts',
33+
),
34+
},
35+
],
3636
},
3737
server: {
3838
port: 8080,

scripts/prepare-dev-vite-configs.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ for (const template of templates) {
4646
find: /^@storyblok\\/field-plugin\\/vue3$/,
4747
replacement: '${path.resolve(
4848
__dirname,
49-
'../packages/field-plugin/helpers/vue3/src/index.ts',
49+
'../packages/lib-helpers/vue3/src/index.ts',
5050
)}'
5151
}, {
5252
find: /^@storyblok\\/field-plugin\\/react$/,
5353
replacement: '${path.resolve(
5454
__dirname,
55-
'../packages/field-plugin/helpers/react/src/index.ts',
55+
'../packages/lib-helpers/react/src/index.ts',
5656
)}'
5757
}]
5858
},

0 commit comments

Comments
 (0)