From 27291ae32eea9c7ca75d445a5ab68df087565ad5 Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Wed, 24 Jul 2024 23:00:40 +0200 Subject: [PATCH] fix: no longer export anything (no index.ts, no main in package.json) backend-lib was the only consumer, and they're doing `yarn build` instead --- package.json | 2 -- src/index.ts | 1 - src/leak.test.ts | 3 --- tsconfig.json | 1 + tsconfig.prod.json | 2 +- 5 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 src/index.ts diff --git a/package.json b/package.json index 17cb128..941deee 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,6 @@ "cfg/overwrite/.gitignore", "cfg" ], - "main": "dist/index.js", - "types": "dist/index.d.ts", "bin": { "dev-lib": "dist/bin/dev-lib.js", "up": "dist/bin/up.js", diff --git a/src/index.ts b/src/index.ts deleted file mode 100644 index f1cab3f..0000000 --- a/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { buildProd } from './build.util' diff --git a/src/leak.test.ts b/src/leak.test.ts index 2644ae8..14564c8 100644 --- a/src/leak.test.ts +++ b/src/leak.test.ts @@ -1,6 +1,3 @@ test('should not leak', () => { - require('.') require('./testing') }) - -export {} diff --git a/tsconfig.json b/tsconfig.json index beda22a..44e2d88 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "extends": "./cfg/tsconfig.json", "compilerOptions": { "outDir": "./dist", + "declaration": false, }, "include": ["src"], "exclude": ["**/__exclude"], diff --git a/tsconfig.prod.json b/tsconfig.prod.json index 85dfed6..7b32a76 100644 --- a/tsconfig.prod.json +++ b/tsconfig.prod.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "sourceMap": false, - "declaration": true, + "declaration": false, }, "exclude": ["**/__exclude", "src/test", "src/**/*.test.*"], }