Skip to content

Commit

Permalink
fix: no longer export anything (no index.ts, no main in package.json)
Browse files Browse the repository at this point in the history
backend-lib was the only consumer, and they're doing `yarn build` instead
  • Loading branch information
kirillgroshkov committed Jul 24, 2024
1 parent d9d7b14 commit 27291ae
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/leak.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
test('should not leak', () => {
require('.')
require('./testing')
})

export {}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./cfg/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"declaration": false,
},
"include": ["src"],
"exclude": ["**/__exclude"],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": false,
"declaration": true,
"declaration": false,
},
"exclude": ["**/__exclude", "src/test", "src/**/*.test.*"],
}

0 comments on commit 27291ae

Please sign in to comment.