Skip to content

Commit

Permalink
RegExp fixes in upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jawj committed Nov 12, 2020
1 parent 17f1748 commit 3548924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generate/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ To convert your codebase, please do the following:
To: import * as db from 'zapatos/db'
/^(\\s*import[^"']*['"])[^"']*/zapatos/src(["'])/g
-> $1zapatos$2
-> $1zapatos/db$2
3) Change: import * as s from './path/to/zapatos/schema'
To: import type * as s from 'zapatos/schema'
^^^^
be sure to import type, not just import
/^(\\s*import\\s*)(type)?([^"']*['"])[^"']+/(zapatos/schema["'])/g
-> $1type$3$4
/^(\\s*import\\s*)(type\\s*)?([^"']*['"])[^"']+/(zapatos/schema["'])/g
-> $1type $3$4
Thank you.
`);
Expand Down

0 comments on commit 3548924

Please sign in to comment.