Skip to content

Commit 8d0d0e9

Browse files
justin808claude
andcommitted
Add shakapacker-config binstub for Shakapacker 9.2.0
Add the new bin/shakapacker-config utility introduced in Shakapacker 9.2.0 to all dummy apps. This tool exports webpack/rspack configurations in human-readable formats for debugging and comparison. The binstub provides: - --doctor mode for comprehensive troubleshooting - --save mode to export configurations - Multiple output formats (YAML, JSON, inspect) - Support for both webpack and rspack Added to: - spec/dummy/bin/shakapacker-config - react_on_rails_pro/spec/dummy/bin/shakapacker-config - react_on_rails_pro/spec/execjs-compatible-dummy/bin/shakapacker-config 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 907ddd6 commit 8d0d0e9

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env node
2+
3+
// Minimal shim - all logic is in the TypeScript module
4+
const { run } = require("shakapacker/configExporter")
5+
6+
run(process.argv.slice(2))
7+
.then((exitCode) => process.exit(exitCode))
8+
.catch((error) => {
9+
console.error(error.message)
10+
process.exit(1)
11+
})
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env node
2+
3+
// Minimal shim - all logic is in the TypeScript module
4+
const { run } = require("shakapacker/configExporter")
5+
6+
run(process.argv.slice(2))
7+
.then((exitCode) => process.exit(exitCode))
8+
.catch((error) => {
9+
console.error(error.message)
10+
process.exit(1)
11+
})

spec/dummy/bin/shakapacker-config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env node
2+
3+
// Minimal shim - all logic is in the TypeScript module
4+
const { run } = require("shakapacker/configExporter")
5+
6+
run(process.argv.slice(2))
7+
.then((exitCode) => process.exit(exitCode))
8+
.catch((error) => {
9+
console.error(error.message)
10+
process.exit(1)
11+
})

0 commit comments

Comments
 (0)