phibelle-kit 1.0.2 → 1.0.3

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 CHANGED
@@ -5,7 +5,6 @@ import { cloneSceneCommand } from "./commands/clone-scene.js";
5
5
  import { waitForToken } from "./lib/wait-for-token.js";
6
6
  const USAGE = " Usage: phibelle-kit clone <sceneId> | phibelle-kit watch <sceneId>";
7
7
  async function main() {
8
- await waitForToken();
9
8
  const command = process.argv[2];
10
9
  const sceneId = process.argv[3];
11
10
  if (!command || !sceneId) {
@@ -13,6 +12,7 @@ async function main() {
13
12
  console.log(chalk.gray(USAGE));
14
13
  process.exit(1);
15
14
  }
15
+ await waitForToken();
16
16
  if (command === "clone") {
17
17
  await cloneSceneCommand(sceneId);
18
18
  process.exit(0);
@@ -1,7 +1,7 @@
1
1
  export const getNpmPackage = (sceneId) => {
2
2
  return `{
3
3
  "scripts": {
4
- "watch": "phibelle-kit watch ${sceneId}"
4
+ "watch": "npx phibelle-kit watch ${sceneId}"
5
5
  },
6
6
  "dependencies": {
7
7
  "@react-three/drei": "^10.7.7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phibelle-kit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI tool for interacting with the Phibelle engine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,7 +9,8 @@
9
9
  "scripts": {
10
10
  "build": "tsc",
11
11
  "dev": "tsc && NODE_ENV=development node dist/index.js",
12
- "start": "node dist/index.js"
12
+ "start": "node dist/index.js",
13
+ "npm-publish": "pnpm build && npm publish"
13
14
  },
14
15
  "engines": {
15
16
  "node": ">=20"