diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..241a838 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,34 @@ +{ + "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 new file mode 100644 index 0000000..e4f2209 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "next-websockets", + "version": "1.0.0", + "main": "dist/cli.js", + "repository": "git@github.com:selimaj-dev/next-websockets.git", + "author": "Klesti Selimaj ", + "license": "Apache-2.0", + "type": "module", + "bin": { + "next-websockets": "dist/bin/cli.js" + }, + "scripts": { + "build": "tsc", + "dev:tool": "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..67c2e4a --- /dev/null +++ b/src/bin/cli.ts @@ -0,0 +1,7 @@ +#!/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/src/index.ts b/src/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..b8b6425 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2022"], + + "module": "NodeNext", + "moduleResolution": "NodeNext", + + "rootDir": "./src", + "outDir": "./dist", + "noEmit": false, + + "strict": true, + "skipLibCheck": true, + + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "resolveJsonModule": true + }, + "include": ["src/**/*.ts"], + "exclude": ["node_modules", "dist"] +}