mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-22 07:07:53 +00:00
test: fix esm packages
This commit is contained in:
parent
495ede6b53
commit
a43066f17b
@ -3,6 +3,7 @@ import type { JestConfigWithTsJest } from 'ts-jest'
|
||||
const config: JestConfigWithTsJest = {
|
||||
preset: 'ts-jest/presets/default-esm',
|
||||
moduleNameMapper: {
|
||||
'@chronocat/red': '@chronocat/red/src',
|
||||
'^(\\.{1,2}/.*)\\.js$': '$1',
|
||||
},
|
||||
transform: {
|
||||
|
@ -14,9 +14,15 @@
|
||||
"typings": "lib/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"default": "./lib/index.js",
|
||||
"import": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts"
|
||||
},
|
||||
"./src": {
|
||||
"default": "./src/index.ts",
|
||||
"import": "./src/index.ts",
|
||||
"types": "./src/index.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user