chore!: move away from ESM

It turns out that Jest's ESM support still relies on experimental node
modules (as of node 18). Switch back to commonjs instead.
This commit is contained in:
Tom Keller
2022-10-15 18:09:41 -07:00
parent 239add3ff1
commit 921a07e77f
10 changed files with 174 additions and 82 deletions
Generated
+3 -9
View File
@@ -14,7 +14,8 @@
"post-upgrade": "npx projen post-upgrade",
"pre-compile": "npx projen pre-compile",
"release": "npx projen release",
"test": "node --no-warnings --experimental-vm-modules node_modules/.bin/jest.js",
"test": "npx projen test",
"test:watch": "npx projen test:watch",
"unbump": "npx projen unbump",
"upgrade": "npx projen upgrade",
"watch": "npx projen watch",
@@ -105,13 +106,7 @@
}
]
],
"preset": "ts-jest/presets/default-esm-legacy",
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"preset": "ts-jest",
"transform": {
"^.+\\.[tj]sx?$": [
"ts-jest",
@@ -127,6 +122,5 @@
"@types/responselike": "1.0.0",
"got": "12.3.1"
},
"type": "module",
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
}