gvergnaud / hotscript

A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: does not work properly with tsconfig module, moduleResolution, target

alexn-s opened this issue · comments

commented

version: 1.0.11
typescript: 5.0.4

package.json

{
  "name": "hot",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "scripts": {},
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@types/node": "^18.16.0",
    "hotscript": "^1.0.11",
    "typescript": "^5.0.4"
  }
}

does not work

tsconfig.json

{
  "compilerOptions": {
    "module": "ESNext",
    "moduleResolution": "nodenext",
    "target": "ESNext",
    "declaration": true,
    "esModuleInterop": true,
    "strict": true,
    "outDir": "dist/"
  },
  "include": ["src/"]
}

image

does work

tsconfig.json

{
  "compilerOptions": {
    "declaration": true,
    "esModuleInterop": true,
    "strict": true,
    "outDir": "dist/"
  },
  "include": ["src/"]
}

image

issue

hotscript does not appear to work with these settings

...
    "module": "ESNext",
    "moduleResolution": "nodenext",
    "target": "ESNext",
...

does anybody have any ideas?
just wanted to use hotscript in my code but this "bug" currently stops me from using it.

Hey! repro'd this issue locally and I managed to fix it in version 1.0.12-rc.0. @alexn-s could you try installing on your side and check if everything works?

commented

@gvergnaud yes it works now.

thank you for this quick fix.
cant wait to use hotscript.

it is really innovative and it has a nice & elegant api