Typescript and Task Outputs #2239
-
|
I started with an existing tsconfig that output to # file: ./.moon/tasks/typescript.yml
typecheck:
options:
outputStyle: buffer-only-failure
command:
- 'tsc'
- '--build'
- '--pretty'
- '--verbose'
inputs:
# Source and test files
- 'src/**/*'
- 'test/**/*'
# Type declarations
- 'types/**/*'
# Project configs
- 'tsconfig.json'
- 'tsconfig.*.json'
- '*.ts'
- '*.js'
# Root configs (extended from only)
- '/tsconfig.options.json'
outputs:
# Matches `compilerOptions.outDir`
- 'dist'I opted to try the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
For those who find this, the correct output is as follows: outputs:
- '/.moon/cache/types/$projectSource' |
Beta Was this translation helpful? Give feedback.
For those who find this, the correct output is as follows: