Repository navigation
build: commitlint設定修正 #399
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| extends: ['@commitlint/config-conventional'], | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: gahojin/aws-lambda-mock-context
Length of output: 221
🏁 Script executed:
Repository: gahojin/aws-lambda-mock-context
Length of output: 9335
🏁 Script executed:
Repository: gahojin/aws-lambda-mock-context
Length of output: 885
🌐 Web query:
mise npm backend isolated npm tool installation NODE_PATH module resolution mise exec💡 Result:
Mise handles npm packages as isolated, versioned tools without requiring a global Node.js or npm installation, while also managing environment isolation for child processes. npm Backend Isolation By default, mise uses an embedded aube package manager to install npm-based CLI tools [1][2][3]. This allows mise to resolve versions and install packages directly from the npm registry without needing node or npm on your PATH [1][2]. The installed tools are kept in isolated mise directories, and their binaries are exposed by adding the package's node_modules/.bin directory to your PATH when activated or used via mise exec [3]. Mise Exec and Environment Isolation When you run mise exec [tool] -- [command], mise creates an isolated environment for that command [4][5]. To prevent version conflicts (a common issue where stale PATH entries point to the wrong Node version), mise explicitly manipulates the PATH for the executed process [6][7]: 1. It identifies and filters out inherited mise-managed install directories from the system PATH [6]. 2. It prepends the correct bin directories for the requested tool version to the PATH [4][5][6]. This approach ensures that child processes (like subshells, scripts with #!/usr/bin/env node, or build tools like yarn/npm spawning workers) correctly resolve the intended Node version and associated dependencies, rather than falling back to stale versions present in the parent shell's environment [6][7]. NODE_PATH and Module Resolution Mise does not inherently alter the NODE_PATH environment variable. Node.js's standard module resolution algorithm (looking for node_modules in parent directories) applies as usual [8]. If you rely on NODE_PATH for global module resolution, note that Node.js documentation advises against it in favor of local dependency management [8]. Because mise isolates its tools in specific directories, modules are generally resolved within the project's or tool's own node_modules structure, minimizing the need for global environment variables like NODE_PATH [3]. Summary of Key Settings - npm.shell_out: Set to true if you must use the npm CLI for specific configurations (like custom CA certificates or auth token helpers) [1][2][3]. - npm.package_manager: Allows selecting alternative installers like aube_cli, pnpm, bun, or npm [2][9]. - Tool-level postinstall: Use this in your mise.toml for packages that must be installed into every Node.js version [10].
Citations:
@commitlint/config-conventionalをプロジェクト依存関係として管理してください。package.jsonとpnpm-lock.yamlに設定パッケージがありません。mise execは実行ファイルをPATHに追加しますが、Node のモジュール解決先には追加しません。commitlint.config.cjsのextendsを解決できず、commit-msgフックが失敗します。設定パッケージをdevDependenciesに追加してロックファイルを更新するか、明示的な--extends指定を維持してください。🤖 Prompt for AI Agents
Source: MCP tools