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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rspress",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",