-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
CLI: Add "intents" question & auto-install test addon & improve test-addon compatibility #30202
base: next
Are you sure you want to change the base?
Changes from 154 commits
bde2134
7e4592d
9f88950
59d7c63
6462b7b
3a19d00
71df9d9
b5f7b2e
25d7e76
760ce6d
c44aca3
321de92
9683316
20844fc
57bc122
0eec9b0
e84572d
0f42062
b843a68
199b5bf
5da8301
0fccec9
fb51e3b
1a5fe81
7440621
21c04b7
9541d3e
1e75423
5ff6089
90f12d7
69d64f8
a876450
94843bf
b79205f
49f2c44
35505ec
f02c1a7
211318f
580cf60
234c8da
6555742
fe1e4c7
098a52e
02cffc8
c97f554
2cbdd8e
e821aae
660aa3c
18b4f8d
82851be
f6975ff
ec64802
1cdcb1a
8c9d6af
b5d1593
6423249
cfd010a
b6e2afe
b530642
cf905a2
4b9f6cf
bbdae44
54b0998
9983643
d5ca217
dcd3d1f
a59ea66
af7ec07
75019af
d8fc245
df22449
ab86684
9c70158
195c39f
8ff6e74
f58c72d
4817715
3fe3307
a4c188e
212b99f
4bf774d
924fb94
133f948
3de4555
dde08df
9dc465b
25e2024
d41f56d
1276642
10bf2e7
d9f0590
076929d
03c8751
b28651c
174473c
6443b00
2a2f9b0
dbdb3a1
2ad4e6f
17eb077
68fd581
d281b9a
3114096
23379b3
9e3968d
5b2bbab
db1e037
90f0a74
4958640
89c404c
e003420
8b13cb1
7a167e0
16a7433
958e81e
7ea83ed
1a6be9c
3159795
7044963
fb670b9
e8d1fdf
8a58dbe
da9991b
1368d0d
e9abc33
5661454
2f2472c
426013c
f83bd4b
4302698
6266659
29e75e1
e858811
6b9ec5d
6f059c1
a594eea
8468f6f
88f3cbc
ef2f0e6
c3b2f8b
46771c5
f4f1e3b
457a447
1c0dd49
9028541
6a6e89b
e433a08
6867b54
da37286
8e0d959
fe2dc28
5bad95b
2a2806f
2ff6044
5adcfd5
d43667d
43029f5
dc10757
35656f0
78a2d72
0063c5e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,10 @@ import { spawn } from 'child_process'; | |
const args = process.argv.slice(2); | ||
|
||
if (['dev', 'build'].includes(args[0])) { | ||
require('@storybook/core/cli/bin'); | ||
import('@storybook/core/cli/bin').catch((e) => { | ||
console.error('Failed to load @storybook/core/cli/bin', e); | ||
process.exit(1); | ||
}); | ||
Comment on lines
7
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: consider adding await to ensure the import completes before any other code runs |
||
} else { | ||
const proxiedArgs = | ||
args[0] === 'init' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,7 @@ process.once('uncaughtException', (error) => { | |
throw error; | ||
}); | ||
|
||
require('../dist/bin/index.cjs'); | ||
import('../dist/bin/index.js').catch((error) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Using dynamic import() with .js extension may cause issues if the file is actually .cjs - verify the correct extension is being used |
||
console.error(error); | ||
process.exit(1); | ||
}); |
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.
style: Consider using a more concise glob pattern like '/.storybook//*.{ts,tsx}' instead of separate patterns