mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-25 09:37:35 +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 = {
|
const config: JestConfigWithTsJest = {
|
||||||
preset: 'ts-jest/presets/default-esm',
|
preset: 'ts-jest/presets/default-esm',
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
|
'@chronocat/red': '@chronocat/red/src',
|
||||||
'^(\\.{1,2}/.*)\\.js$': '$1',
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
||||||
},
|
},
|
||||||
transform: {
|
transform: {
|
||||||
|
@ -14,9 +14,15 @@
|
|||||||
"typings": "lib/index.d.ts",
|
"typings": "lib/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
|
"default": "./lib/index.js",
|
||||||
"import": "./lib/index.js",
|
"import": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts"
|
"types": "./lib/index.d.ts"
|
||||||
},
|
},
|
||||||
|
"./src": {
|
||||||
|
"default": "./src/index.ts",
|
||||||
|
"import": "./src/index.ts",
|
||||||
|
"types": "./src/index.ts"
|
||||||
|
},
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user