12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
params: ({ args }) => {
|
||
|
|
||
|
const storypath = args.path.replace( '.svelte', '.stories.svelte' );
|
||
|
const component = path.basename(args.path).replace('.svelte','');
|
||
|
|
||
|
return { storypath, component}
|
||
|
}
|
||
|
}
|