easycode-utils
v0.0.5
Published
Downloads
17
Readme
npm library
yarn build 후 그리고 폴더와 컴파일된 결과물들에 맞춰서 main, types 그리고 exports 필드도 그것에 맞게 변경해 주자. 기존에는 그냥 index.js를 main 필드에 넣어주었지만, 이제는 컴파일된 결과물인 dist/index.js를 main 필드에 넣어주자. 그리고 추가로 exports 필드 안에 types 필드를 추가할 수 있다. 생성된 d.ts 파일을 명시해 주자. 그리고 마지막으로 exports 필드의 import에는 컴파일 결과물인 dist/index.js을 넣어주자. (require는 우선 가만히 놔둬도 된다.)