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

feat(plugin-loader): support esm and ts(experiment) configure load #197

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

Zhengqbbb
Copy link
Owner

@Zhengqbbb Zhengqbbb commented Nov 1, 2024

Type Of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ“ Document (This change requires a documentation update)
  • 🎨 Theme style (Theme style beautification)
  • ⚠ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ”¨ Workflow (Workflow changes)

Clear Describe

Description

Important

Using Node.js LTS v22 experimental features to natively load TypeScript configuration files

--experimental-transform-types

  • .commitlintrc.*ts
  • commitlint.config.*ts
  • cz.config.*ts

Usage:

1. [Project] package.json script with cross-env

"scripts": {
-    "cz": "czg"
+    "cz": "cross-env NODE_OPTIONS='--experimental-transform-types --disable-warning ExperimentalWarning' czg"
}

2. [Global] with alias command

# .zshrc | .bashrc
alias czg="NODE_OPTIONS='--experimental-transform-types --disable-warning ExperimentalWarning' \czg"

3. [Global] with export command

# .zshrc | .bashrc
export NODE_OPTIONS="--experimental-transform-types --disable-warning ExperimentalWarning"

@Zhengqbbb Zhengqbbb changed the title feat(plugin-loader): support esm and ts configure loader feat(plugin-loader): support esm and ts(experiment) configure load Nov 1, 2024
Copy link

netlify bot commented Nov 1, 2024

βœ… Deploy Preview for cz-git ready!

Name Link
πŸ”¨ Latest commit 44aca98
πŸ” Latest deploy log https://app.netlify.com/sites/cz-git/deploys/6724d5356280720008ce50ed
😎 Deploy Preview https://deploy-preview-197--cz-git.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Zhengqbbb Zhengqbbb merged commit 1288093 into main Nov 1, 2024
11 checks passed
@Zhengqbbb Zhengqbbb deleted the feat/ts-esm-config-loader_192 branch November 1, 2024 13:23
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.

1 participant