Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TypeStrong/ts-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v10.8.2
Choose a base ref
...
head repository: TypeStrong/ts-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.9.0
Choose a head ref
  • 12 commits
  • 44 files changed
  • 2 contributors

Commits on Jul 2, 2022

  1. Allow opting-in to .ts import specifiers (#1815)

    * quick impl
    
    * fix
    
    * update
    
    * add a test
    
    * add jsdoc for new option
    cspotcode committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    91110cd View commit details
    Browse the repository at this point in the history
  2. swc plugin enhancements (#1802)

    * refactor swc plugin to make it more test-able; also throw helpful error when users swc dep is too old
    
    * fmt
    
    * fix
    
    * fix import assertions
    
    * fix
    cspotcode committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    ab15063 View commit details
    Browse the repository at this point in the history
  3. Fix #1764 (#1824)

    cspotcode committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    ad01f49 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2022

  1. Make --project accept path to directory containing tsconfig, not just…

    … path to tsconfig (#1830)
    
    * fix #1829
    
    * fix
    
    * fix
    cspotcode committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    aa5ec36 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Configuration menu
    Copy the full SHA
    86b63bf View commit details
    Browse the repository at this point in the history
  2. Fix ESM node processes being unable to fork into other scripts (#1814)

    * Fix ESM node processes being unable to fork into other scripts
    
    Currently, Node processes instantiated through the `--esm` flag result
    in a child process being created so that the ESM loader can be
    registered. This works fine and is reasonable.
    
    The child process approach to register ESM hooks currently prevents
    the NodeJS `fork` method from being used because the `execArgv`
    propagated into forked processes causes `ts-node` (which is also
    propagated as child exec script -- this is good because it allows nested
    type resolution to work) to always execute the original entry-point,
    causing potential infinite loops because the designated fork module
    script is not executed as expected.
    
    This commit fixes this by not encoding the entry-point information into
    the state that is captured as part of the `execArgv`. Instead the
    entry-point information is always retrieved from the parsed rest command
    line arguments in the final stage (`phase4`).
    
    Fixes #1812.
    
    * Fix `--cwd` to actually set the working directory and work with ESM child process
    
    Currently the `--esm` option does not necessarily do what the
    documentation suggests. i.e. the script does not run as if the working
    directory is the specified directory.
    
    This commit fixes this, so that the option is useful for TSConfig
    resolution, as well as for controlling the script working directory.
    
    Also fixes that the CWD encoded in the bootstrap brotli state for the
    ESM child process messes with the entry-point resolution, if e.g. the
    entry-point in `child_process.fork` is relative to a specified `cwd`.
    
    * changes based on review
    
    * lint-fix
    
    * enable transpileOnly in new tests for performance
    
    * Tweak basic working dir tests to verify that --cwd affects entrypoint resolution but not process.cwd()
    
    * update forking tests:
    
    disable non --esm test with comment about known bug and link to tickets
    make tests set cwd for fork() call, to be sure it is respected and not overridden by --cwd
    
    * use swc compiler to avoid issue with ancient TS versions not understanding import.meta.url syntax
    
    * Remove tests that I think are redundant (but I've asked for confirmation in code review)
    
    * fix another issue with old TS
    
    * final review updates
    
    Co-authored-by: Andrew Bradley <[email protected]>
    devversion and cspotcode committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    32d07e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3333005 View commit details
    Browse the repository at this point in the history
  4. docs tweak ugh

    cspotcode committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    604b2aa View commit details
    Browse the repository at this point in the history
  5. rebuild readme

    cspotcode committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    ee3e37a View commit details
    Browse the repository at this point in the history
  6. update api report

    cspotcode committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    b30ad7e View commit details
    Browse the repository at this point in the history
  7. fix jsdoc typo

    cspotcode committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    7e41cb7 View commit details
    Browse the repository at this point in the history
  8. 10.9.0

    cspotcode committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    11424e0 View commit details
    Browse the repository at this point in the history
Loading