Skip to content

Commit a920119

Browse files
authored
[Libs/JS] Revert ESM build (#1572)
It's breaking some consumers of the package. Revert until we do the ESM packaging properly.
1 parent ae2766b commit a920119

File tree

3 files changed

+10
-46
lines changed

3 files changed

+10
-46
lines changed

javascript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
"description": "Svix webhooks API client and webhook verification library",
55
"author": "svix",
66
"repository": "https://github.com/svix/svix-libs",
7+
"type": "commonjs",
78
"keywords": [
89
"svix",
910
"diahook",
1011
"webhooks",
1112
"typescript"
1213
],
1314
"license": "MIT",
14-
"type": "commonjs",
15-
"main": "./dist/cjs/index.js",
16-
"typings": "./dist/cjs/index.d.ts",
15+
"main": "./dist/index.js",
16+
"typings": "./dist/index.d.ts",
1717
"files": [
1818
"src",
1919
"dist"
2020
],
2121
"scripts": {
22-
"build": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json",
22+
"build": "tsc",
2323
"prepare": "yarn run build",
2424
"test": "jest",
2525
"prepublishOnly": "yarn lint",

javascript/tsconfig.esm.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

javascript/tsconfig.cjs.json renamed to javascript/tsconfig.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,24 @@
77
"moduleResolution": "node",
88
"declaration": true,
99
"allowJs": true,
10+
1011
/* Additional Checks */
1112
"noUnusedLocals": false /* Report errors on unused locals. */, // TODO: reenable (unused imports!)
1213
"noUnusedParameters": false /* Report errors on unused parameters. */, // TODO: set to true again
1314
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
1415
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
16+
1517
"removeComments": true,
1618
"sourceMap": true,
17-
"outDir": "./dist/cjs",
19+
"outDir": "./dist",
1820
"noLib": false,
19-
"lib": [
20-
"es6",
21-
"dom"
22-
]
21+
"lib": ["es6", "dom"]
2322
},
2423
"exclude": [
2524
"dist",
2625
"node_modules",
2726
"jest.config.js",
2827
"src/**/*.test.ts",
2928
],
30-
"filesGlob": [
31-
"./src/**/*.ts"
32-
]
33-
}
29+
"filesGlob": ["./src/**/*.ts"]
30+
}

0 commit comments

Comments
 (0)