On grit 0.1.1
For some reason, I'm unable to match export
statements.
pattern.grit
any {
`import $_ from $source`,
`export $_ from $source`
}
import { foo } from "./foo"
export { bar } from "./bar"
Run:
grit apply import-paths.grit test.ts
Output:
test.ts
1 import { foo } from "./foo"
Processed 1 files and found 1 matches