-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- TypeScript는 CommonJs로 컴파일 - package.json exports 필드를 통해 ESM/CommonJS로 처리 - Jest는 ts-jest를 통해 TypeScript파일을 직접처리
- Loading branch information
Showing
3 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
{ | ||
"name": "@noctaCrdt", | ||
"version": "1.0.0", | ||
"main": "dist/Crdt.js", | ||
"main": "./dist/Crdt.js", | ||
"module": "./dist/Crdt.js", | ||
"types": "dist/Crdt.d.ts", | ||
"scripts": { | ||
"build": "tsc -b" | ||
}, | ||
"exports": { | ||
"./Crdt": { | ||
"types": "./dist/Crdt.d.ts", | ||
"default": "./dist/Crdt.js" | ||
"require": "./dist/Crdt.js", | ||
"import": "./dist/Crdt.js", | ||
"types": "./dist/Crdt.d.js" | ||
}, | ||
"./Node": { | ||
"types": "./dist/Node.d.ts", | ||
"default": "./dist/Node.js" | ||
"require": "./dist/Node.js", | ||
"import": "./dist/Node.js", | ||
"types": "./dist/Node.d.ts" | ||
}, | ||
"./LinkedList": { | ||
"types": "./dist/LinkedList.d.ts", | ||
"default": "./dist/LinkedList.js" | ||
"require": "./dist/LinkedList.js", | ||
"import": "./dist/LinkedList.js", | ||
"types": "./dist/LinkedList.d.ts" | ||
}, | ||
"./Interfaces": { | ||
"types": "./dist/Interfaces.d.ts", | ||
"default": "./dist/Interfaces.js" | ||
"require": "./dist/Interfaces.js", | ||
"import": "./dist/Interfaces.js", | ||
"types": "./dist/Interfaces.d.ts" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters