antfu-collective / taze

🥦 A modern cli tool that keeps your deps fresh
MIT License
2.66k stars 86 forks source link

`taze.config.js` no longer working since v0.13.9 #121

Closed NimmLor closed 1 month ago

NimmLor commented 2 months ago

Describe the bug

Since v0.13.9 (also v0.14.0) taze does no longer pick up my config file. Downgrading to v0.13.8 resolves this issue. I'm running it in a monorepo using yarn workspaces.

UPDATE: Seems to be caused by the bump of unconfig to v0.4, adding the resolution fixed it for me:

  "resolutions": {
    "unconfig": "0.3.13"
  }

package.json

{
  "name": "root",
  "workspaces": [
    "apps/*",
    "packages/*",
    "backend",
    "infra"
  ],
  "scripts": {
    "deps:upgrade": "taze -w",
  },
  "devDependencies": {
    "taze": "0.13.9"
  },
  "packageManager": "yarn@4.3.1"
}

taze.config.js

import { defineConfig } from 'taze'

export default defineConfig({
  exclude: ['@aws-sdk/*', '@types/node'],
  install: false,
  packageMode: {
    typescript: 'major',
  },
  recursive: true,
})

Reproduction

install v0.13.9 or 0.14.0

System Info

System:
  OS: Windows 11 10.0.22631
  CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
  Memory: 15.03 GB / 31.75 GB
Binaries:
  Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
  Yarn: 4.3.1 - ~\AppData\Roaming\npm\yarn.CMD
  npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
  pnpm: 7.26.3 - ~\AppData\Local\pnpm\pnpm.EXE
  bun: 1.1.8 - ~\.bun\bin\bun.EXE
Browsers:
  Edge: Chromium (126.0.2592.81)
  Internet Explorer: 11.0.22621.3527

Same issue in Linux GitHub Actions Runner using node v20.12.1

Used Package Manager

yarn

Validations

Contributions

antfu commented 2 months ago

Could you share a minimal reproduction (after trying the latest version)? I couldn't help without knowing that's the error and what causes it.

ntnyq commented 2 months ago

Reproduction repo

ntnyq commented 2 months ago

Seems to be an upstream issue of tsx which is dependent by importx for importing TS file.

tsImport results are various from whether type: "module" is set or not.

I filed an issue against it.

https://github.com/privatenumber/tsx/issues/611

And there is a minimal reproduction for this issue:

https://github.com/ntnyq-dev/repro-tsx-esm-api

arcinston commented 1 month ago

yup broken for us too , on the latest version

really awesome tool btw!!! @antfu

antfu commented 1 month ago

v0.16.2 should fix it - let me know if it doesn't. Thanks.

arcinston commented 1 month ago

legend 🙏 thanks!!