Skip to content

Commit

Permalink
chore(): typescript-transform-paths 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteKiwi committed Mar 1, 2022
1 parent 4622ae2 commit ffa3859
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "the-camp",
"version": "0.0.1",
"version": "0.0.3",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": "[email protected]:whitekiwi/the-camp.git",
Expand All @@ -11,9 +11,12 @@
"test:watch": "jest --watch --testPathIgnorePatterns='.e2e.*'",
"test:cov": "jest --coverage --forceExit --testPathIgnorePatterns='.e2e.*'",
"prebuild": "rimraf ./lib",
"build": "yarn run prebuild && tsc --project tsconfig.build.json",
"build": "ttsc -p tsconfig.build.json",
"script": "ts-node .scripts/index.ts"
},
"dependencies": {
"axios": "^0.26.0"
},
"devDependencies": {
"@kiwi-lib/eslint-config": "^1",
"@types/jest": "^27.4.1",
Expand All @@ -23,7 +26,9 @@
"ts-jest": "^27.1.3",
"ts-node": "^10.5.0",
"tsconfig-paths": "^3.12.0",
"typescript": "^4.6.2"
"ttypescript": "^1.5.13",
"typescript": "^4.6.2",
"typescript-transform-paths": "^3.3.1"
},
"license": "MIT",
"homepage": "https://github.com/whitekiwi/the-camp",
Expand All @@ -37,8 +42,5 @@
"files": [
"lib"
],
"prettier": "@kiwi-lib/eslint-config/prettier.config",
"dependencies": {
"axios": "^0.26.0"
}
"prettier": "@kiwi-lib/eslint-config/prettier.config"
}
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"paths": {
"@core/*": ["./src/core/*"],
"@common/*": ["./src/common/*"]
}
},
// Transform paths in output
"plugins": [
{ "transform": "typescript-transform-paths" },
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
]
}
}
16 changes: 15 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2742,7 +2742,7 @@ resolve.exports@^1.1.0:
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9"
integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==

resolve@^1.20.0:
resolve@>=1.9.0, resolve@^1.20.0:
version "1.22.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198"
integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==
Expand Down Expand Up @@ -3059,6 +3059,13 @@ tsutils@^3.21.0:
dependencies:
tslib "^1.8.1"

ttypescript@^1.5.13:
version "1.5.13"
resolved "https://registry.yarnpkg.com/ttypescript/-/ttypescript-1.5.13.tgz#c3bcb760599fe49157d30c5d5895a0023cbb7f30"
integrity sha512-KT/RBfGGlVJFqEI8cVvI3nMsmYcFvPSZh8bU0qX+pAwbi7/ABmYkzn7l/K8skw0xmYjVCoyaV6WLsBQxdadybQ==
dependencies:
resolve ">=1.9.0"

type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
Expand Down Expand Up @@ -3095,6 +3102,13 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript-transform-paths@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/typescript-transform-paths/-/typescript-transform-paths-3.3.1.tgz#74526bc1b6dc575ffe269cc81833db7bd81763e1"
integrity sha512-c+8Cqd2rsRtTU68rJI0NX/OtqgBDddNs1fIxm1nCNyhn0WpoyqtpUxc1w9Ke5c5kgE4/OT5xYbKf2cf694RYEg==
dependencies:
minimatch "^3.0.4"

typescript@^4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.2.tgz#fe12d2727b708f4eef40f51598b3398baa9611d4"
Expand Down

0 comments on commit ffa3859

Please sign in to comment.