diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 241a838..0000000 --- a/package-lock.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "next-websockets", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "next-websockets", - "version": "1.0.0", - "license": "Apache-2.0", - "dependencies": { - "@types/node": "^25.2.2" - }, - "bin": { - "next-websockets": "dist/bin/cli.js" - } - }, - "node_modules/@types/node": { - "version": "25.2.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.2.tgz", - "integrity": "sha512-BkmoP5/FhRYek5izySdkOneRyXYN35I860MFAGupTdebyE66uZaR+bXLHq8k4DirE5DwQi3NuhvRU1jqTVwUrQ==", - "license": "MIT", - "dependencies": { - "undici-types": "~7.16.0" - } - }, - "node_modules/undici-types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", - "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "license": "MIT" - } - } -} diff --git a/package.json b/package.json index 459966a..efe2f46 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,11 @@ "license": "Apache-2.0", "type": "module", "bin": { - "next-websockets": "dist/index.js" + "next-websockets": "dist/bin/cli.js" }, "scripts": { "build": "tsc", - "dev:tool": "next-websockets" + "dev": "next-websockets" }, "dependencies": { "@types/node": "^25.2.2" diff --git a/src/bin/cli.ts b/src/bin/cli.ts new file mode 100644 index 0000000..21b31cd --- /dev/null +++ b/src/bin/cli.ts @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +console.log('yo') \ No newline at end of file diff --git a/src/index.ts b/src/index.ts deleted file mode 100644 index 67c2e4a..0000000 --- a/src/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env node - -const args = process.argv.slice(2); - -console.log("Dev tool running"); -console.log("Args:", args); -console.log("CWD:", process.cwd()); diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..88744f2 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,15 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@types/node@^25.2.2": + version "25.2.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-25.2.2.tgz#0ddfe326c326afcb3422d32bfe5eb2938e1cb5db" + integrity sha512-BkmoP5/FhRYek5izySdkOneRyXYN35I860MFAGupTdebyE66uZaR+bXLHq8k4DirE5DwQi3NuhvRU1jqTVwUrQ== + dependencies: + undici-types "~7.16.0" + +undici-types@~7.16.0: + version "7.16.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" + integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==