-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(gatsby): compile only TS files #34892
Conversation
const parcel = constructParcel(siteRoot) | ||
const distDir = `${siteRoot}/${COMPILED_CACHE_DIR}` | ||
await ensureDir(distDir) | ||
await emptyDir(distDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of importance - added emptyDir
to clean out potentially stale files in compiled dir from previous compilations
aa48a61
to
30647e0
Compare
30647e0
to
065b3d5
Compare
065b3d5
to
3efc7f1
Compare
export const gatsbyFileRegex = `gatsby-+(node|config).{ts,js}` | ||
export const gatsbyFileRegex = `gatsby-+(node|config).ts` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverting this line should automagically enable handling compiled .js
files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
* get simplest gatsby-config.ts working * make gatsby-node work * use program.directory for default-site-plugin for browser/ssr * chore(docs): update TS doc (#34757) Co-authored-by: LekoArts <lekoarts@gmail.com> * feat(gatsby-parcel-config): create parcel config package (#34779) Co-authored-by: Lennart <lekoarts@gmail.com> * refactor(core): Polish ahead of time ts implementation (#34773) Co-authored-by: LekoArts <lekoarts@gmail.com> * tmp * update parcel deps version * update snapshot * merge master * feat(core): TS compilation of local plugin gatsby files (#34827) Co-authored-by: LekoArts <lekoarts@gmail.com> * Update scaling-issues.md * Restore build.js * Restore develop.js * Restore repl.js * set flag to always true * chore(docs): update main tutorial to incorporate TS Updates to create-gatsby (#34890) Co-authored-by: Lennart <lekoarts@gmail.com> * chore(gatsby): compile only TS files (#34892) * use require resolve for defaultConfig * update doc to add limitations and migration guides * add structured error logging * fix cache reslience setup (#34915) * bump @parcel/source-map in monorepo lock * adjust tests so cache dirs are cleared only before compilations to workaround EBUSY problems on Windows * address review comments * docs: specify gatsby versions supporting particular TS features (#34945) Co-authored-by: Lennart <lekoarts@gmail.com> Co-authored-by: Jude Agboola <marvinjudehk@gmail.com> Co-authored-by: Ty Hopp <tyhopp@users.noreply.github.com> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com> Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
Description
Adjust #34776 to only compile .ts files
Related Issues
[sc-46563]