Configurable glob patterns #149
DerHannes85
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
@DerHannes85 Would commit d26254c solve this issue? Simple example tsconfig: {
...
"tsc-alias": {
"fileExtensions": {
"inputGlob": "{mjs,cjs,js,jsx,d.{mts,cts,ts,tsx},vue}",
"outputCheck": [
"js",
"json",
"jsx",
"cjs",
"mjs",
"d.ts",
"d.tsx",
"d.cts",
"d.mts",
"vue"
],
}
}
} |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
We need to add pure typescript files to a package, so we can use it in another project, where then the build will happen. The source works with
compilerOptions.paths
. Beside of some other preparations, we want to resolve these Path aliases in the packed*.ts
and.vue
files. Unfortunately theglobPattern
in src/index.ts#L48 does not include these file types.Solutions
Make the the
globPattern
in src/index.ts#L48 configurable so that one can decide which file types are treated.Question
Are you guys interested in such a feature?
We could fork and implement this, but we would love to see this then later back in your tool.
Beta Was this translation helpful? Give feedback.
All reactions