Meteor-Community-Packages / Meteor-Community-Packages/meteor-typescript

No recompilation if file changed more than once

Open
#9 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

After each new 'meteor run', when a source file is edited then, compiler only reruns once for that file. A new edit of the same file does not trigger a new compilation:

This is the log after a first 'main.ts' change:

```
Typescript processing requested for web.browser using Typescript 4.6.2
Compiling server/main.ts
Writing .meteor/local/plugin-cache/refapp_meteor-typescript/0.3.8/v2cache/buildfile.tsbuildinfo
Compilation finished in 0.1 seconds. 1 files were (re)compiled.
Typescript summary: 0.3 seconds for sending 113 transpiled files on for bundling
Typescript processing requested for os.linux.x86_64 using Typescript 4.6.2
Typescript summary: 0.3 seconds for sending 40 transpiled files on for bundling
=> Meteor server restartedTypescript processing requested for web.browser.legacy using Typescript 4.6.2
Typescript summary: 0.3 seconds for sending 113 transpiled files on for bundling
```

This is the log after a second 'main.ts' change:

```
Typescript processing requested for web.browser using Typescript 4.6.2
Typescript summary: 0.3 seconds for sending 113 transpiled files on for bundling
Typescript processing requested for os.linux.x86_64 using Typescript 4.6.2
Typescript summary: 0.3 seconds for sending 40 transpiled files on for bundling
=> Meteor server restartedTypescript processing requested for web.browser.legacy using Typescript 4.6.2
Typescript summary: 0.3 seconds for sending 113 transpiled files on for bundling
```
As you can see, 'main.ts' is not recompiled anymore.

This happens for all source files, so they can only be changed once.
A new 'meteor run' resets this behavior.

This behavior is here already for some time, could even be from the beginning when I started using this package about half year ago.
It works fine with the default meteor 'typescript' package, which recompiles correctly with any file change, however since this doesn't show any error logging I prefer this package.

Any ideas?

I'm currently running Meteor 2.7 on Linux Mint 19.2 (Ubuntu 18.04).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with `meteor run` by editing `main.ts` twice and compare the compiler logs. Trace the package's file-watch and recompilation entry point, then verify that every subsequent edit triggers compilation without restarting Meteor.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.