Skip to content
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

Add moduleType option to override module type on certain files. #1371

Merged
merged 22 commits into from Jul 9, 2021

Commits on Jun 10, 2021

  1. Add moduleType option to override module type on certain files. Also

    refactor resolverFunctions into their own file; should break this into
    2x PRs later.
    cspotcode committed Jun 10, 2021
    Copy the full SHA
    92370bc View commit details
    Browse the repository at this point in the history
  2. lint fix

    cspotcode committed Jun 10, 2021
    Copy the full SHA
    3d2ecd9 View commit details
    Browse the repository at this point in the history
  3. add test

    cspotcode committed Jun 10, 2021
    Copy the full SHA
    5ef7346 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    81eb233 View commit details
    Browse the repository at this point in the history
  5. add docs

    cspotcode committed Jun 10, 2021
    Copy the full SHA
    30f1656 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    9680012 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2021

  1. Copy the full SHA
    49bf02e View commit details
    Browse the repository at this point in the history
  2. lint-fix

    cspotcode committed Jun 14, 2021
    Copy the full SHA
    8f63885 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    7bd2076 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    dcbd916 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Test coverage: moduleType overrides during ts-node loader usage (#1376)

    * Test coverage: add test case to confirm that moduleType overrides are applied for ts-node in loader mode
    
    * Ensure that a default export exists for the esm-exception module
    
    * Re-order tsconfig.json glob rules, and use implicit globbing
    
    * lint fixup: apply prettier
    
    * Add 'experimental-specifier-resolution' flag to NPM options in ESM module override test
    
    * Ensure that a default export exists for the cjs-subdir module
    
    * Revert "Ensure that a default export exists for the cjs-subdir module"
    
    This reverts commit c64cf92.
    
    * Revert "Add 'experimental-specifier-resolution' flag to NPM options in ESM module override test"
    
    This reverts commit 1093df8.
    
    * Specify tsconfig project using TS_NODE_PROJECT environment variable
    
    * Use full file paths in preference to directory-default module imports
    
    This avoids ERR_UNSUPPORTED_DIR_IMPORT, without having to provide the 'experimental-specifier-resolution' flag to ts-node
    
    * Update index.ts
    
    * Update index.ts
    
    * Update tsconfig.json
    
    * Extract execModuleTypeOverride function
    
    * Add expected failure cases for Node 12.15, 14.13
    
    Co-authored-by: Andrew Bradley <cspotcode@gmail.com>
    jayaddison and cspotcode committed Jul 9, 2021
    Copy the full SHA
    e0f460e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    fa14c65 View commit details
    Browse the repository at this point in the history
  3. Update tests

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    df7c8a6 View commit details
    Browse the repository at this point in the history
  4. fix

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    d989df5 View commit details
    Browse the repository at this point in the history
  5. fix

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    ce3d03e View commit details
    Browse the repository at this point in the history
  6. fix for TS2.7

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    f19ee07 View commit details
    Browse the repository at this point in the history
  7. fix

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    66e7e19 View commit details
    Browse the repository at this point in the history
  8. fix

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    f74b729 View commit details
    Browse the repository at this point in the history
  9. reword

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    7833a52 View commit details
    Browse the repository at this point in the history
  10. update docs

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    d88d94f View commit details
    Browse the repository at this point in the history
  11. address todos

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    915e05d View commit details
    Browse the repository at this point in the history
  12. fix

    cspotcode committed Jul 9, 2021
    Copy the full SHA
    1ec6b05 View commit details
    Browse the repository at this point in the history