vite-wp 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -26,7 +26,7 @@ mkdir my-site
26
26
  cd my-site
27
27
  npm init -y
28
28
  npm install vite-wp astro typescript @astrojs/check
29
- npx vitewp init
29
+ npx vite-wp init
30
30
  cp .env.example .env
31
31
  npm run dev
32
32
  ```
package/dist/cli.js CHANGED
@@ -32,9 +32,9 @@ switch (command) {
32
32
  process.exitCode = 1;
33
33
  }
34
34
  function printHelp() {
35
- console.log(`vitewp\n\nUsage:\n vitewp init Copy starter project files into the current directory
36
- vitewp dev Start the local WordPress + Astro development runtime
37
- vitewp doctor Check the current project setup
38
- vitewp types Generate TypeScript types from WordPress metadata
39
- vitewp smoke Verify the running ViteWP dev runtime\n`);
35
+ console.log(`vite-wp\n\nUsage:\n vite-wp init Copy starter project files into the current directory
36
+ vite-wp dev Start the local WordPress + Astro development runtime
37
+ vite-wp doctor Check the current project setup
38
+ vite-wp types Generate TypeScript types from WordPress metadata
39
+ vite-wp smoke Verify the running ViteWP dev runtime\n`);
40
40
  }
@@ -47,9 +47,9 @@ function updatePackageJson(root) {
47
47
  : { private: true, type: 'module' };
48
48
  packageJson.type ??= 'module';
49
49
  packageJson.scripts ??= {};
50
- packageJson.scripts.dev ??= 'vitewp dev';
51
- packageJson.scripts.doctor ??= 'vitewp doctor';
52
- packageJson.scripts.types ??= 'vitewp types';
50
+ packageJson.scripts.dev ??= 'vite-wp dev';
51
+ packageJson.scripts.doctor ??= 'vite-wp doctor';
52
+ packageJson.scripts.types ??= 'vite-wp types';
53
53
  packageJson.scripts.check ??= 'astro check';
54
54
  writeFileSync(file, `${JSON.stringify(packageJson, null, 2)}\n`, 'utf8');
55
55
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "vite-wp",
3
3
  "private": false,
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "type": "module",
6
6
  "bin": {
7
- "vitewp": "dist/cli.js"
7
+ "vite-wp": "dist/cli.js"
8
8
  },
9
9
  "exports": {
10
10
  ".": {