Skip to content

Commit 83b6751

Browse files
committed
FIX: npm 배포 설정
1 parent 82bf966 commit 83b6751

File tree

9 files changed

+45
-10
lines changed

9 files changed

+45
-10
lines changed

.gitignore

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
/node_modules
2-
/cjs
3-
/esm
1+
node_modules
2+
3+
!cjs/
4+
cjs/*
5+
!cjs/package.json
6+
!cjs/tsconfig.json
7+
8+
!esm/
9+
esm/*
10+
!esm/package.json
11+
!esm/tsconfig.json

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules
2+
/lib
3+
/index.ts

cjs/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

cjs/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"module": "CommonJS",
5+
"outDir": "./",
6+
}
7+
}

esm/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

esm/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"module": "ES2022",
5+
"moduleResolution": "Node",
6+
"outDir": "./",
7+
}
8+
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"name": "bsm-oauth",
3-
"version": "1.0.0",
3+
"version": "1.0.4",
44
"description": "BSM Auth를 JavaScript에서 쉽게 사용할 수 있는 라이브러리",
5-
"main": "dist/lib/index.js",
5+
"main": "./cjs/index.js",
6+
"module": "./esm/index.js",
67
"exports": {
78
".": {
89
"import": "./esm/index.js",
910
"require": "./cjs/index.js"
1011
}
1112
},
12-
"type": "module",
13-
"types": "dist/lib/index.d.ts",
1413
"scripts": {
1514
"build": "npm run build:cjs & npm run build:esm",
1615
"build:cjs": "tsc --p ./cjs/tsconfig.json",

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"forceConsistentCasingInFileNames": true,
99
"strict": true,
1010
"skipLibCheck": true,
11-
"declaration": true
11+
"declaration": true,
12+
"declarationMap": true,
13+
"sourceMap": true,
14+
"outDir": "./dist",
15+
"moduleResolution": "Node"
1216
}
1317
}

0 commit comments

Comments
 (0)