create-jant 0.3.17 → 0.3.18

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import path from "path";
9
9
  import { fileURLToPath } from "url";
10
10
  var __filename = fileURLToPath(import.meta.url);
11
11
  var __dirname = path.dirname(__filename);
12
- var CORE_VERSION = "0.3.17";
12
+ var CORE_VERSION = "0.3.18";
13
13
  var TEMPLATE_DIR = fs.existsSync(path.resolve(__dirname, "../template")) ? path.resolve(__dirname, "../template") : path.resolve(__dirname, "../../../templates/jant-site");
14
14
  function isValidProjectName(name) {
15
15
  return /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(name);
@@ -122,7 +122,7 @@ async function copyTemplate(config) {
122
122
  for (const [key, value] of Object.entries(pkg.scripts)) {
123
123
  if (typeof value === "string") {
124
124
  pkg.scripts[key] = value.replace(
125
- /pnpm (\S+)/g,
125
+ /pnpm run (\S+)/g,
126
126
  (_, script) => formatRunCmd(packageManager, script)
127
127
  );
128
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jant",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "Create a new Jant project",
5
5
  "type": "module",
6
6
  "bin": {