Skip to content

Commit 9eb7de9

Browse files
Refactor: Remove ESM from bucketing-test-data build
Co-authored-by: jonathan <jonathan@taplytics.com>
1 parent fdd346a commit 9eb7de9

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

lib/shared/bucketing-test-data/package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
"name": "@devcycle/bucketing-test-data",
33
"version": "1.36.4",
44
"license": "MIT",
5-
"main": "./main.cjs",
6-
"module": "./main.js",
7-
"types": "./main.d.ts",
8-
"exports": {
9-
".": {
10-
"types": "./main.d.ts",
11-
"import": "./main.js",
12-
"require": "./main.cjs"
13-
}
14-
},
155
"repository": {
166
"type": "git",
177
"url": "git://github.com/DevCycleHQ/js-sdks.git"

lib/shared/bucketing-test-data/project.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"outputPath": "dist/lib/shared/bucketing-test-data",
1919
"tsConfig": "lib/shared/bucketing-test-data/tsconfig.lib.json",
2020
"main": "lib/shared/bucketing-test-data/src/main.ts",
21-
"format": ["cjs", "esm"],
21+
"format": ["cjs"],
2222
"platform": "node",
2323
"bundle": true,
2424
"declaration": true,
@@ -29,7 +29,10 @@
2929
"class-transformer",
3030
"class-validator",
3131
"reflect-metadata"
32-
]
32+
],
33+
"esbuildOptions": {
34+
"outExtension": { ".js": ".js" }
35+
}
3336
},
3437
"dependsOn": [
3538
{

0 commit comments

Comments
 (0)