├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── README.md ├── bin ├── svelte2dts └── svelte2dts.cmd ├── jest.config.js ├── package.json ├── src ├── commands │ └── index.ts ├── file-manager.ts ├── index.ts ├── lib.ts ├── tsconfig.json └── utils.ts ├── test ├── command.test.ts ├── fixtures │ └── simple-project │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── src │ │ ├── A.svelte │ │ ├── B.svelte.d.ts │ │ ├── C.svelte │ │ ├── C.svelte.d.ts │ │ └── index.ts │ │ └── tsconfig.json └── tsconfig.json └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /out 2 | /_build_ 3 | /test/fixtures -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/README.md -------------------------------------------------------------------------------- /bin/svelte2dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/bin/svelte2dts -------------------------------------------------------------------------------- /bin/svelte2dts.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\svelte2dts" %* 4 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/package.json -------------------------------------------------------------------------------- /src/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/src/commands/index.ts -------------------------------------------------------------------------------- /src/file-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/src/file-manager.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib' 2 | -------------------------------------------------------------------------------- /src/lib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/src/lib.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/command.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/command.test.ts -------------------------------------------------------------------------------- /test/fixtures/simple-project/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/package-lock.json -------------------------------------------------------------------------------- /test/fixtures/simple-project/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/package.json -------------------------------------------------------------------------------- /test/fixtures/simple-project/src/A.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/src/A.svelte -------------------------------------------------------------------------------- /test/fixtures/simple-project/src/B.svelte.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/src/B.svelte.d.ts -------------------------------------------------------------------------------- /test/fixtures/simple-project/src/C.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/src/C.svelte -------------------------------------------------------------------------------- /test/fixtures/simple-project/src/C.svelte.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/src/C.svelte.d.ts -------------------------------------------------------------------------------- /test/fixtures/simple-project/src/index.ts: -------------------------------------------------------------------------------- 1 | export {default as A} from './A.svelte' -------------------------------------------------------------------------------- /test/fixtures/simple-project/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/fixtures/simple-project/tsconfig.json -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefish5000/svelte2dts/HEAD/tsconfig.json --------------------------------------------------------------------------------