2936 Commits

Author SHA1 Message Date
Michael Shilman
b1da06450d v7.0.0-beta.53 2023-02-22 01:57:44 +08:00
Michael Shilman
bdd54da489 Update root, peer deps, version.ts/json to 7.0.0-beta.53 [ci skip] 2023-02-22 01:53:34 +08:00
Michael Shilman
7e68aa2637
Merge pull request #21190 from storybookjs/shilman/csf-tools-fix-configfile-named-export-scalars
Csf Tools: Fix overriding scalar named export values
2023-02-22 01:51:48 +08:00
Michael Shilman
9f6c51b41f Csf Tools: Fix overriding scalar named export values 2023-02-22 01:29:43 +08:00
Kasper Peulen
da02ee870d Fix tests 2023-02-21 17:57:42 +01:00
Kasper Peulen
f1cab15124 Make sure to use valid javascript names as identifier 2023-02-21 17:37:35 +01:00
Kasper Peulen
ff810e3250 Make sure new export name don't exist 2023-02-21 17:37:35 +01:00
Kasper Peulen
107e748193 Skip migration if there are no stories in the mdx file 2023-02-21 17:37:35 +01:00
Kasper Peulen
9512b52f2e Skip renaming when errors 2023-02-21 17:37:35 +01:00
Kasper Peulen
5d5bb8175b Fix an issue causing babel errors 2023-02-21 17:37:35 +01:00
Kasper Peulen
4cb87c3417 Fix bundle process 2023-02-21 17:37:35 +01:00
Kasper Peulen
7303e938ef Keep Story id node, and add comment above 2023-02-21 17:37:35 +01:00
Kasper Peulen
5164cc6ffa Simplify boolean logic 2023-02-21 17:37:35 +01:00
Kasper Peulen
e5a394002e Add story child is csf3 test 2023-02-21 17:37:35 +01:00
Kasper Peulen
1fa7cf2e1a Add Template reference to mdx files 2023-02-21 17:37:35 +01:00
Kasper Peulen
d14a8db8ef Add csf snapshot for "convert correct story nodes" 2023-02-21 17:37:35 +01:00
Kasper Peulen
b7c082213e Comment out <Story id /> with a note to migrate 2023-02-21 17:37:35 +01:00
Kasper Peulen
85df7183e3 Only write story import to mdx file when needed 2023-02-21 17:37:35 +01:00
Kasper Peulen
b3ac73fa6e Fix extra test cases 2023-02-21 17:37:35 +01:00
Kasper Peulen
95a8e449e2 Replace comments 2023-02-21 17:37:35 +01:00
Kasper Peulen
49d80b054d Add note about regex used 2023-02-21 17:37:35 +01:00
Kasper Peulen
ea78bad5a5 Implement mdx to csf migration 2023-02-21 17:37:35 +01:00
Yann Braga
87f32d6db4 csf-tools: support satisfies and as TS operator with module.exports 2023-02-21 17:08:50 +01:00
Norbert de Langen
3a067f7b2c
Merge pull request #21161 from storybookjs/norbert/try-harder-getting-mjs-files
Fix: try harder to resolve `.mjs` files for the browser entries
2023-02-21 15:57:08 +01:00
Kasper Peulen
5ac3b9441c Fix jscodeshift error: env: node\r: No such file or directory 2023-02-21 10:31:26 +01:00
Norbert de Langen
8a1c247e28
Merge pull request #21168 from storybookjs/fix/refactor-automigrations
CLI: Improve how automigrations read `main.js`
2023-02-21 09:27:24 +01:00
Michael Shilman
effa5d88d0 Update git head to 7.0.0-beta.52, update yarn.lock [ci skip] 2023-02-21 15:36:42 +08:00
Michael Shilman
1f559ed69a v7.0.0-beta.52 2023-02-21 15:35:33 +08:00
Michael Shilman
ef1253d5c4 Update root, peer deps, version.ts/json to 7.0.0-beta.52 [ci skip] 2023-02-21 15:16:43 +08:00
Michael Shilman
f9e61a6656
Merge pull request #21166 from storybookjs/norbert/fix-21004-some-more
CLI: Fix CRA init, ensure the new version of the preset
2023-02-21 15:04:48 +08:00
Michael Shilman
0427498c29 Add migration note for CRA4 support 2023-02-21 15:03:33 +08:00
Tom Coleman
c22c5372d3 Merge branch 'next' into 20663-coalesce-errors 2023-02-21 09:26:32 +11:00
Tom Coleman
da186a0d71
Merge pull request #21112 from storybookjs/20663-rationalize-index-errors
Core: Don't crash when there are errors indexing
2023-02-21 09:20:53 +11:00
Yann Braga
5ef1d6c6a5 refactor and cleanup automigrations 2023-02-20 20:20:27 +01:00
Yann Braga
1f27f57472 refactor all webpack5 related migrations 2023-02-20 20:20:27 +01:00
Norbert de Langen
a3de472967
Merge branch 'next' into norbert/try-harder-getting-mjs-files 2023-02-20 18:34:48 +01:00
Norbert de Langen
6921a36ada
remove cra < 5 support 2023-02-20 18:33:10 +01:00
Norbert de Langen
e12e722c1b
Merge branch 'next' into norbert/fix-21004-some-more 2023-02-20 16:26:34 +01:00
Norbert de Langen
0ead7cc115
ensure the CLI installs the new version of the preset 2023-02-20 16:21:52 +01:00
Michael Shilman
f03e042419 Update git head to 7.0.0-beta.51, update yarn.lock [ci skip] 2023-02-20 23:05:49 +08:00
Michael Shilman
92ae17be35 v7.0.0-beta.51 2023-02-20 23:04:31 +08:00
Michael Shilman
8e29ccce4b Update root, peer deps, version.ts/json to 7.0.0-beta.51 [ci skip] 2023-02-20 23:01:59 +08:00
Yann Braga
13acf140c1
Merge pull request #21164 from storybookjs/fix/type-errors-automigrate
Maintenance: fix type errors on automigrate `check` step
2023-02-20 15:50:05 +01:00
Norbert de Langen
e40f9688d2
Merge branch 'next' into norbert/try-harder-getting-mjs-files 2023-02-20 15:47:02 +01:00
Michael Shilman
4d5d7aa67a Merge branch 'next' into shilman/framework-parameter-to-renderer 2023-02-20 22:40:56 +08:00
Yann Braga
6402ced34a fix type errors on automigrate check step 2023-02-20 15:22:57 +01:00
Norbert de Langen
f01cd5c33f
after resolve, check FS to see if there's a .mjs version available 2023-02-20 14:52:53 +01:00
Yann Braga
adff4293b8 detect legacy renderers in validations 2023-02-20 12:49:40 +01:00
Yann Braga
4477f8ca41 update migration for new-frameworks 2023-02-20 12:04:30 +01:00
Tom Coleman
53747a8931 Use import paths for errors, and slash them 2023-02-20 21:46:50 +11:00