├── .githooks └── pre-commit ├── .github ├── release.yml └── workflows │ └── test.yml ├── .gitignore ├── .mocharc.json ├── LICENSE ├── README.md ├── bin └── cmd.mjs ├── package.json ├── src ├── cli.ts └── tsconfig-to-dual-package.ts ├── test ├── cli.test.ts └── snapshots │ ├── ng.invalid-tsconfig │ ├── index.ts │ ├── package.json │ └── tsconfig.json │ ├── ng.no-includes-target-tsconfig │ ├── index.ts │ ├── package.json │ └── tsconfig.json │ ├── ok.cjs-esm-multi-tsconfig │ ├── cjs │ │ └── package.json │ ├── esm │ │ └── package.json │ ├── index.ts │ ├── output.txt │ ├── package.json │ ├── tsconfig.cjs.json │ └── tsconfig.json │ ├── ok.esm-single-tsconfig │ ├── index.ts │ ├── module │ │ └── package.json │ ├── output.txt │ ├── package.json │ └── tsconfig.json │ ├── ok.node-16-default │ ├── cjs │ │ └── package.json │ ├── default │ │ └── package.json │ ├── index.ts │ ├── output.txt │ ├── package.json │ ├── tsconfig.cjs.json │ └── tsconfig.json │ ├── ok.node-16-type-commonjs │ ├── cjs │ │ └── package.json │ ├── default │ │ └── package.json │ ├── index.ts │ ├── output.txt │ ├── package.json │ ├── tsconfig.cjs.json │ └── tsconfig.json │ ├── ok.node-16-type-module │ ├── cjs │ │ └── package.json │ ├── default │ │ └── package.json │ ├── index.ts │ ├── output.txt │ ├── package.json │ ├── tsconfig.cjs.json │ └── tsconfig.json │ ├── ok.node-esnext-type-module │ ├── cjs │ │ └── package.json │ ├── esm │ │ └── package.json │ ├── index.ts │ ├── output.txt │ ├── package.json │ ├── tsconfig.cjs.json │ └── tsconfig.json │ ├── ok.tsconfig-in-subdir │ ├── config │ │ └── tsconfig.json │ ├── index.ts │ ├── module │ │ └── package.json │ ├── options.json │ ├── output.txt │ └── package.json │ └── ok.tsconfig-to-package-but-remove-main-exports │ ├── cjs │ └── package.json │ ├── index.ts │ ├── module │ └── package.json │ ├── output.txt │ ├── package.json │ ├── tsconfig.cjs.json │ └── tsconfig.json ├── tsconfig.cjs.json ├── tsconfig.json └── yarn.lock /.githooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | npx --no-install lint-staged 3 | -------------------------------------------------------------------------------- /.github/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/.github/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/.gitignore -------------------------------------------------------------------------------- /.mocharc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/.mocharc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/README.md -------------------------------------------------------------------------------- /bin/cmd.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/bin/cmd.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/package.json -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/tsconfig-to-dual-package.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/src/tsconfig-to-dual-package.ts -------------------------------------------------------------------------------- /test/cli.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/cli.test.ts -------------------------------------------------------------------------------- /test/snapshots/ng.invalid-tsconfig/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ng.invalid-tsconfig/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/snapshots/ng.invalid-tsconfig/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ng.invalid-tsconfig/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ng.no-includes-target-tsconfig/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ng.no-includes-target-tsconfig/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/snapshots/ng.no-includes-target-tsconfig/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ng.no-includes-target-tsconfig/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.cjs-esm-multi-tsconfig/cjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/esm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.cjs-esm-multi-tsconfig/esm/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.cjs-esm-multi-tsconfig/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.cjs-esm-multi-tsconfig/tsconfig.cjs.json -------------------------------------------------------------------------------- /test/snapshots/ok.cjs-esm-multi-tsconfig/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.cjs-esm-multi-tsconfig/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.esm-single-tsconfig/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.esm-single-tsconfig/module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.esm-single-tsconfig/module/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.esm-single-tsconfig/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.esm-single-tsconfig/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.esm-single-tsconfig/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/snapshots/ok.esm-single-tsconfig/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.esm-single-tsconfig/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-default/cjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/default/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-default/default/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-default/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-default/tsconfig.cjs.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-default/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-default/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-commonjs/cjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/default/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-commonjs/default/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-commonjs/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-commonjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-commonjs/tsconfig.cjs.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-commonjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-commonjs/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-module/cjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/default/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-module/default/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-module/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-module/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-module/tsconfig.cjs.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-16-type-module/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-16-type-module/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-esnext-type-module/cjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/esm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-esnext-type-module/esm/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-esnext-type-module/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-esnext-type-module/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-esnext-type-module/tsconfig.cjs.json -------------------------------------------------------------------------------- /test/snapshots/ok.node-esnext-type-module/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.node-esnext-type-module/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-in-subdir/config/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-in-subdir/config/tsconfig.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-in-subdir/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-in-subdir/module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-in-subdir/module/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-in-subdir/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-in-subdir/options.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-in-subdir/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-in-subdir/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-in-subdir/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app" 3 | } 4 | -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/cjs/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/index.ts: -------------------------------------------------------------------------------- 1 | export const A = "test"; 2 | -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/module/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/output.txt -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/package.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/tsconfig.cjs.json -------------------------------------------------------------------------------- /test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/test/snapshots/ok.tsconfig-to-package-but-remove-main-exports/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/tsconfig-to-dual-package/HEAD/yarn.lock --------------------------------------------------------------------------------