Skip to content

Commit

Permalink
Tweak follow-up
Browse files Browse the repository at this point in the history
(cherry picked from commit 03a929d)
  • Loading branch information
art-alexeyenko committed Aug 2, 2023
1 parent 72a108b commit 6ae9b83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"sass-alias": "^1.0.5"
},
"scripts": {
"scaffold": "ts-node --project tsconfig.scripts.json scripts/scaffold-component.ts"
"scaffold": "ts-node --project tsconfig.scripts.json scripts/scaffold-component/index.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class PackagesPlugin implements ComponentBuilderPlugin {

/**
* Or you can register all components from a path using the below approach:
* import { PackageDefinition, getComponentList } from '@sitecore-jss/sitecore-jss-dev-tools/templating';
* import { PackageDefinition, getComponentList } from '@sitecore-jss/sitecore-jss-dev-tools';
* ...
* const componentsPath = 'src/extra';
* config.packages = getComponentList(extraPath) as PackageDefinition[];
* config.packages = getComponentList(componentsPath) as PackageDefinition[];
*/
config.packages = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class NextStepsPlugin implements ScaffoldComponentPlugin {
`* Implement the React component in ${chalk.green(componentOutputPath)}`
);
}
if (!(componentOutputPath as string).includes('src/components')) {
if (!(componentOutputPath as string).includes('src\\components')) {
config.nextSteps.push(
`* ${chalk.green(
componentName
Expand Down

0 comments on commit 6ae9b83

Please sign in to comment.