{"_id":"@danicastar/spck-dts-gen","_rev":"9-4361bfce2d03917933a1b787678c5bba","name":"@danicastar/spck-dts-gen","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@danicastar/spck-dts-gen","version":"1.0.0","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.0.0","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"78234facd792ed061824147d3665b5a67b4fb376","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.0.0.tgz","fileCount":6,"integrity":"sha512-8y+au0lcssqiFlDW4+8SLK0G3IudqL/P2sHSiAXgSEWZre2/woarLYbfDOxUePghj06Xra29afIqFPBC3zBYQQ==","signatures":[{"sig":"MEUCIQCGE/9Hg6hYnjp/oTf/2Evy0CPtU6civud2WBCkyR9YHgIgQYIo1zAmrXmuSU5iyV316+j6alp2Pdmne8O42J+G480=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8493},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.0.0_1761061004101_0.9429028187138067","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@danicastar/spck-dts-gen","version":"1.0.1","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.0.1","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"8b7e775ceef2d7037c2770c528f5fab69f4d4d81","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.0.1.tgz","fileCount":6,"integrity":"sha512-Kcaltlh/4vtMVflTZeNSaQZlbstP3SiFgdkPNFT3Fb6BjbTOBEAF07dlb6p/1E0XtTiJwjR5oqCzfVakxulBXQ==","signatures":[{"sig":"MEQCIDZ7xYI6mKMwA4Rq+vHznlmxkuxbp3kD30NUsBdmQ/ZwAiAwURocJn41skSNp8MdCNV1pRjGXxUFTpK1joncxhLgLA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8527},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.0.1_1761062212342_0.2052996638648279","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@danicastar/spck-dts-gen","version":"1.0.2","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.0.2","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"f6226af0d8218cfa311e62a5f97b651e0d5a092b","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.0.2.tgz","fileCount":6,"integrity":"sha512-LMelN0za4CiVvRdMsqcVZLR8LR5hMYfthWaG9rb6PWmvPvRy+neq/FZXiLHQqXa5CiBpHyNd42rz9u4VyRcKYg==","signatures":[{"sig":"MEUCIEmpsR6ySjB4dZiDsXkbQ4vwajzYkeLZTusijaqkJnAzAiEA0XKTzSKL3rSXDj6/ofyroLV1VppR4rZmLlw9beLKn/U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8530},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.0.2_1761062515426_0.9620487205647101","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@danicastar/spck-dts-gen","version":"1.0.3","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.0.3","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"0fb7582adc90de1dfdcc68a1c9e4f329453c24a1","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.0.3.tgz","fileCount":6,"integrity":"sha512-mzHRVDZUKxwXiogfB67ogfpAfrEBCDuco5SzGezKHXBat7IPCQAVdZfI/uAkcgSPdCTw7DIPo1woCPA0SLC4kA==","signatures":[{"sig":"MEUCIQDFStXHK5M0wkVy5G+j0jWJKjFIWNCwwUJp7MaH3nh2LgIgcBR6RTwkvyRHF24KFTbG4fOeUQ754lr6mPxwTCMXHn0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8685},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.0.3_1761063737073_0.12338137320691733","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@danicastar/spck-dts-gen","version":"1.0.4","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.0.4","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"6606e90e46fc56aab6079cfc844c9e1b253ab3c9","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.0.4.tgz","fileCount":6,"integrity":"sha512-kY4EonhOEXgVOJDD577gUtXw2omn9gBdMpwgs1pQVOOKWl6Ie4X82Ff8v12y4iouvNfhxlIsnfx7h/c8xmBNbQ==","signatures":[{"sig":"MEYCIQD17TYjuH0tb7B0tBXBB6YutF234kNZf7MEERlaWUmblgIhANJAdAgLlzPWi3fztDw3VWMXZyhvAm4HHT6sAv1yPcBs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8648},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.0.4_1761063946078_0.31336482710974556","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@danicastar/spck-dts-gen","version":"1.0.5","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.0.5","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"5af4428c2086d927fc89dacefb7f3e13e4e199da","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.0.5.tgz","fileCount":6,"integrity":"sha512-Z3ogMgTNWUwH1mzguB3IY43QDmHYQ7ytTNR42D3pCeoy9asnajrcfKf6MCPFxqqtPjwWD85FPsxcR67/NuDeaA==","signatures":[{"sig":"MEYCIQDuBIj0THsSlArGfc4zVhq+/8nyAQxG02fEbocyywteeAIhAPSTmInYm2/RGHd2rwFQ3jAZ8FfPYVnVobtM4rqr017w","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9871},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.0.5_1761577829792_0.6725217327378403","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@danicastar/spck-dts-gen","version":"1.1.0","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.1.0","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"a781113a52dd10b83ca6c9cac4bb7f49f396ccbd","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.1.0.tgz","fileCount":6,"integrity":"sha512-IcWP6LbL/TGN0VVmXm1hBYfGLP3hDwL4yRcfqwcz/cxw7k1oqcJBJgMLIzLYmi/y6stwMPWnKZHDS78IVhtcYw==","signatures":[{"sig":"MEQCIEI4ni4hZnEWMWlcLhoCczx1S20DdkStN23Au1++MKV7AiAVyqWys6DOUxDjiKvJpc++QXyfqkYc4LXxB7BIpOHODA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10033},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.1.0_1761665467781_0.7038715028271461","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@danicastar/spck-dts-gen","version":"1.2.0","keywords":["spck","termux","dts","typescript"],"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","_id":"@danicastar/spck-dts-gen@1.2.0","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"bin":{"dts-gen":"cli.js"},"dist":{"shasum":"6faa0914f3e3a2ba805f9f8a468b51f7c0c1e76a","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.2.0.tgz","fileCount":6,"integrity":"sha512-ywdwC+9210Kt+PrtSNQsN+Ubcdx3C9lNYHaQjXZB9p+IuSnTQNkIa01zoMr2wO5WdmushIhqyo6JXnL1YfS5NA==","signatures":[{"sig":"MEUCIGiB69jD792PX9kRFSd+p0wD+GO6DMq4vOw/mmHywHurAiEA7amIJ7523eTJSOe29Y+n+6JsYhVpGnRPSvEiuDBQS8I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11266},"main":"index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"_npmVersion":"9.6.7","description":"make a shared.d.ts file consisting of all typed-internal package","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.8.1"},"_npmOperationalInternal":{"tmp":"tmp/spck-dts-gen_1.2.0_1764087188518_0.33444811686202036","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@danicastar/spck-dts-gen","version":"1.2.1","description":"make a shared.d.ts file consisting of all typed-internal package","main":"index.js","author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","dependencies":{},"keywords":["spck","termux","dts","typescript"],"type":"module","devDependencies":{"@types/node":"^24.8.1"},"types":"./index.d.ts","bin":{"dts-gen":"cli.js"},"_id":"@danicastar/spck-dts-gen@1.2.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-SE1Bunq+/m4EUGUx2rC8SAPpmaVVjdGFWOMxR/dVThUWCFNBiZQ8sKIxD3vOsIhXq+Lj9N11cQ91natp4FlOzw==","shasum":"5484fb970ed16185bbe63ce65b9d295a14d9232a","tarball":"https://registry.npmjs.org/@danicastar/spck-dts-gen/-/spck-dts-gen-1.2.1.tgz","fileCount":6,"unpackedSize":11431,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEsdtYe8D6rf6PM43m3H2iGqCUAc8b5f0v5Ra+fxFaz6AiAVEn+hs3Yxv9zyXpR9AaUTphTYgk2atqacQz3edCL7nQ=="}]},"_npmUser":{"name":"danicastar","email":"danicastar@qq.com"},"directories":{},"maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spck-dts-gen_1.2.1_1765430591097_0.4071224452478506"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-21T15:36:43.983Z","modified":"2025-12-11T05:23:11.435Z","1.0.0":"2025-10-21T15:36:44.319Z","1.0.1":"2025-10-21T15:56:52.552Z","1.0.2":"2025-10-21T16:02:00.618Z","1.0.3":"2025-10-21T16:22:17.260Z","1.0.4":"2025-10-21T16:25:46.291Z","1.0.5":"2025-10-27T15:10:29.986Z","1.1.0":"2025-10-28T15:31:07.985Z","1.2.0":"2025-11-25T16:13:08.702Z","1.2.1":"2025-12-11T05:23:11.256Z"},"author":{"name":"DanicaStar"},"license":"GPL-3.0-or-later","keywords":["spck","termux","dts","typescript"],"description":"make a shared.d.ts file consisting of all typed-internal package","maintainers":[{"name":"danicastar","email":"danicastar@qq.com"}],"readme":"# spck-dts-gen\n\n![](https://img.shields.io/badge/spck-8.x-red?style=for-the-badge)\n![](https://img.shields.io/badge/typescript-5.9-blue?style=for-the-badge)\n\nGenerate TypeScript declaration files for packages in your project.\n\n> Hint: This package requires a modded Spck Editor with both `ALLOWED_LANGUAGE_SERVICE_INITIAL_FILES_LIMIT` unlimited and `node_modules` not ignored in `spck.apk/assets/assets/bundle/app.bundle.js`.\n\n## CLI\n\n```bash\n$ cd /path/to/project\n$ npx @danicastar/spck-dts-gen gen-dts -o shared.d.ts\n```\n\n```bash\n\nUsage: gen-dts [options] [workdir]\n\nGenerate TypeScript declaration files for packages in your project\n\nArguments:\n  workdir                 Working directory to scan for packages (default: \".\")\n\nOptions:\n  -o, --output <file>     Output file path (default: stdout)\n  -u, --unknown-suffix    Allow unknown file suffixes (default: true)\n  -n, --no-unknown-suffix Disallow unknown file suffixes\n  -h, --help             Show this help message\n  -v, --version          Show version number\n  -i, --interactive      Interactive input\n\nExamples:\n  gen-dts                        # Generate for current directory\n  gen-dts ./my-project          # Scan specific directory\n  gen-dts -o types.d.ts         # Save to file\n  gen-dts --no-unknown-suffix   # Strict mode\n  gen-dts --help                # Show help\n```\n\n## API\n\nExample:\n\n```js\nimport genDTS from \"@danicastar/spck-dts-gen\"\n\nconst { modulesPath, result } = genDTS(\"/path/to/project\", /* allowUnknownFileSuffix */ true)\n\nfs.writeFileSync(\"shared.d.ts\", result)\n```\n\nType (see index.d.ts for latest):\n\n```ts\nexport default function(workdir: string, allowUnknownFileSuffix?: boolean): {\n  modulesPath: string[],\n  result: string\n} \n```\n\n## TODOS\n\n- [x] v1.2.0 supported `exports` in package.json \n- [ ] support more complex `exports` such as `import` & `require` -> `types`","readmeFilename":"README.md"}