Skip to content

fix: broken 0.10.4 version#128

Merged
antfu merged 1 commit intomainfrom
userquin/fix-borken-0.10.4-version
Dec 21, 2024
Merged

fix: broken 0.10.4 version#128
antfu merged 1 commit intomainfrom
userquin/fix-borken-0.10.4-version

Conversation

@userquin
Copy link
Member

@userquin userquin commented Dec 20, 2024

Description

Latest released version 0.10.4 is broken, looks like some new dependency moving the plugins to dist/shared folder and so the DIR_CLIENT is wrong (previous versions the plugins were on dist folder).

This PR also includes:

  • fixes broken types, now we only need to fix nuxt.cjs (replace exports.default = nuxt with exports = nuxt)
  • adds unbuild build:done hook to check the client directory exists from both CJS and ESM modules: exported DIR_CLIENT from the plugin to allow check it
  • adds @arethetypeswrong/cli to check types are not broken, running after patching nuxt.cjs in build script

Without this PR (https://arethetypeswrong.github.io/?p=vite-plugin-inspect%400.10.4):

imagen

With this PR:

imagen

Linked Issues

resolves #125
resolves #126
resolves #129
supersedes #127

Additional context

@LukerSpringtree
Copy link
Contributor

That's cool!
But what's 'attw'?
Should everyone install this command globally?

@userquin
Copy link
Member Author

userquin commented Dec 21, 2024

That's cool! But what's 'attw'? Should everyone install this command globally?

https://github.com/arethetypeswrong/arethetypeswrong.github.io/tree/main/packages/cli

You can also run it via npx or pnpm dlx or use it using the web cli uploading the tgz or searching the package name: https://arethetypeswrong.github.io/

This was referenced Dec 21, 2024
@antfu antfu merged commit 5989445 into main Dec 21, 2024
@antfu antfu deleted the userquin/fix-borken-0.10.4-version branch December 21, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot see the intermediate state [bug] Because of this #48d4 commit, update some dependencies; Import failing during build

3 participants