Skip to content

Commit

Permalink
feat: add path aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
enxg committed Sep 11, 2021
1 parent 107ccee commit 1b65110
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,9 @@
"plugins": [
"@oclif/plugin-help"
]
},
"imports": {
"#prompts": "./dist/prompts/index.js",
"#functions": "./dist/functions/index.js"
}
}
9 changes: 8 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": "@sapphire/ts-config"
"extends": "@sapphire/ts-config",
"compilerOptions": {
"baseUrl": "./",
"paths": {
"#prompts": ["src/prompts/index.ts"],
"#functions": ["src/functions/index.ts"]
}
}
}

0 comments on commit 1b65110

Please sign in to comment.