Skip to content

Commit f2ca85d

Browse files
committed
fix: correct package.json exports and build configuration
1 parent 8a272d8 commit f2ca85d

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jest.config.js
99
.prettierrc
1010

1111
website/
12-
plugins/
12+
plugins/

package.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,35 @@
22
"name": "@finos/git-proxy",
33
"version": "2.0.0-rc.1",
44
"description": "Deploy custom push protections and policies on top of Git.",
5-
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
5+
"main": "index.js",
6+
"types": "index.d.ts",
7+
"exports": {
8+
".": {
9+
"import": "./index.js",
10+
"require": "./index.js",
11+
"types": "./index.d.ts"
12+
},
13+
"./config": {
14+
"import": "./src/config/index.js",
15+
"require": "./src/config/index.js",
16+
"types": "./src/config/index.d.ts"
17+
},
18+
"./db": {
19+
"import": "./src/db/index.js",
20+
"require": "./src/db/index.js",
21+
"types": "./src/db/index.d.ts"
22+
},
23+
"./proxy": {
24+
"import": "./src/proxy/index.js",
25+
"require": "./src/proxy/index.js",
26+
"types": "./src/proxy/index.d.ts"
27+
},
28+
"./types": {
29+
"import": "./src/types/models.js",
30+
"require": "./src/types/models.js",
31+
"types": "./src/types/models.d.ts"
32+
}
33+
},
734
"scripts": {
835
"cli": "node ./packages/git-proxy-cli/index.js",
936
"client": "vite --config vite.config.ts",

tsconfig.publish.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"noEmit": false,
5-
"outDir": "./dist"
5+
"outDir": "./dist",
6+
"rootDir": "./"
67
},
8+
"include": [
9+
"src/**/*",
10+
"index.ts"
11+
],
712
"exclude": [
813
"experimental/**",
914
"plugins/**",

0 commit comments

Comments
 (0)