Skip to content

Commit

Permalink
[docs-infra] Fix pigment css apps path in the render mui demos script (
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Mar 13, 2024
1 parent 4026bd1 commit eda9f79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/pigmentcss-render-mui-demos.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ ${renders.join('\n')}
// Create the page in pigment apps
const nextFilepath = path.join(
process.cwd(),
`apps/pigment-next-app/src/app/material-ui/${args[0]}/page.tsx`,
`apps/pigment-css-next-app/src/app/material-ui/${args[0]}/page.tsx`,
);
const prettiedNextFileContent = await prettier.format(nextFileContent, {
...prettierConfig,
filepath: nextFilepath,
});
await fse.mkdirp(`apps/pigment-next-app/src/app/material-ui/${args[0]}`);
await fse.mkdirp(`apps/pigment-css-next-app/src/app/material-ui/${args[0]}`);
await fse.writeFile(nextFilepath, prettiedNextFileContent);

/**
Expand All @@ -105,13 +105,13 @@ ${renders.join('\n')}
// Create the page in pigment apps
const viteFilepath = path.join(
process.cwd(),
`apps/pigment-vite-app/src/pages/material-ui/${args[0]}.tsx`,
`apps/pigment-css-vite-app/src/pages/material-ui/${args[0]}.tsx`,
);
const prettiedViteFileContent = await prettier.format(viteFileContent, {
...prettierConfig,
filepath: viteFilepath,
});
await fse.mkdirp(`apps/pigment-vite-app/src/pages/material-ui`);
await fse.mkdirp(`apps/pigment-css-vite-app/src/pages/material-ui`);
await fse.writeFile(viteFilepath, prettiedViteFileContent);
}

Expand Down

0 comments on commit eda9f79

Please sign in to comment.