create-rspress 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8187,7 +8187,7 @@ cli.command("", "Create a new rspress site").action(async () => {
|
|
|
8187
8187
|
await copyFolder(srcFolder, targetDir);
|
|
8188
8188
|
const filesToInterpret = ["docs/index.md", "rspress.config.ts"];
|
|
8189
8189
|
const siteData = siteOptions.reduce((prev, cur) => {
|
|
8190
|
-
prev[cur.name] = cur.value;
|
|
8190
|
+
prev[cur.name] = cur.value.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
8191
8191
|
return prev;
|
|
8192
8192
|
}, {});
|
|
8193
8193
|
for (const file of filesToInterpret) {
|