Skip to content

Commit 4de7a22

Browse files
committed
Add plugin to transform absolute import paths to relative
1 parent dfcae68 commit 4de7a22

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"@types/jest": "^27.5.0",
110110
"@typescript-eslint/eslint-plugin": "^5.21.0",
111111
"@typescript-eslint/parser": "^5.21.0",
112+
"@zerollup/ts-transform-paths": "^1.7.18",
112113
"babel-eslint": "^10.1.0",
113114
"babel-jest": "^28.0.2",
114115
"babel-loader": "^8.1.0",

tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
"paths": {
1010
"src/*": ["./src/*"]
1111
},
12+
"plugins": [
13+
{
14+
"transform": "@zerollup/ts-transform-paths",
15+
"exclude": ["*"]
16+
}
17+
],
1218
"sourceMap": true,
1319
"declaration": true,
1420
"esModuleInterop": true,

yarn.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,20 @@
17751775
resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
17761776
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
17771777

1778+
"@zerollup/ts-helpers@^1.7.18":
1779+
version "1.7.18"
1780+
resolved "https://registry.yarnpkg.com/@zerollup/ts-helpers/-/ts-helpers-1.7.18.tgz#747177f6d5abc06c3a0f5dffe7362d365cf0391d"
1781+
integrity sha512-S9zN+y+i5yN/evfWquzSO3lubqPXIsPQf6p9OiPMpRxDx/0totPLF39XoRw48Dav5dSvbIE8D2eAPpXXJxvKwg==
1782+
dependencies:
1783+
resolve "^1.12.0"
1784+
1785+
"@zerollup/ts-transform-paths@^1.7.18":
1786+
version "1.7.18"
1787+
resolved "https://registry.yarnpkg.com/@zerollup/ts-transform-paths/-/ts-transform-paths-1.7.18.tgz#72f705c66690879e51d53c73dc76c4e2518a8c50"
1788+
integrity sha512-YPVUxvWQVzRx1OBN0Pmkd58+R9FcfUJuwTaPUSoi5rKxuXMtxevTXdfi0w5mEaIH8b0DfL+wg0wFDHiJE+S2zA==
1789+
dependencies:
1790+
"@zerollup/ts-helpers" "^1.7.18"
1791+
17781792
acorn-import-assertions@^1.7.6:
17791793
version "1.8.0"
17801794
resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz#ba2b5939ce62c238db6d93d81c9b111b29b855e9"

0 commit comments

Comments
 (0)