Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsc-esm-fix

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-esm-fix - npm Package Compare versions

Comparing version 2.12.3 to 2.12.4

4

buildstamp.json
{
"git": {
"commitId": "e9b9424140075e6842c6713482c00b169362e406",
"commitId": "9f6743a349a00f9096c0a5ed2b4c7a167f6b1c5d",
"repoUrl": "https://github.com/antongolub/tsc-esm-fix",
"repoName": "antongolub/tsc-esm-fix"
},
"date": "2022-04-08T06:59:26.763Z"
"date": "2022-04-08T07:54:19.437Z"
}

@@ -0,1 +1,3 @@

## [2.12.4](https://github.com/antongolub/tsc-esm-fix/compare/v2.12.3...v2.12.4) (2022-04-08)
## [2.12.3](https://github.com/antongolub/tsc-esm-fix/compare/v2.12.2...v2.12.3) (2022-04-08)

@@ -2,0 +4,0 @@

{
"name": "tsc-esm-fix",
"version": "2.12.3",
"version": "2.12.4",
"private": false,

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -29,2 +29,11 @@ # tsc-esm-fix

#### moduleResolution: nodenext
[Nightly build TypeScript 4.7](https://www.typescriptlang.org/docs/handbook/nightly-builds.html) provides [experimental esm support](https://www.typescriptlang.org/docs/handbook/esm-node.html). But it still forces to add extensions by hand (tested on [4.7.0-dev.20220408](https://www.npmjs.com/package/typescript/v/4.7.0-dev.20220408)).
```shell
src/main/ts/q/u/x/index.ts:1:21 - error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '../../../foo.js'?
1 import { foo } from '../../../foo'
```
### Solutions

@@ -31,0 +40,0 @@ 1. Post-process tsc-compiled outputs each time after build.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc