File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1919 " @aws-amplify/ui-next-app-router-example" ,
2020 " @aws-amplify/ui-react-native-example" ,
2121 " @aws-amplify/ui-react-router-example" ,
22+ " @aws-amplify/ui-svelte-example" ,
2223 " @aws-amplify/ui-vue-example"
2324 ]
2425}
Original file line number Diff line number Diff line change 143143 "jest-environment-jsdom" : " ^29.7.0" ,
144144 "lint-staged" : " >=10" ,
145145 "prettier" : " ^3.0.3" ,
146+ "prettier-plugin-svelte" : " ^3.3.3" ,
146147 "react-test-renderer" : " ^18.3.0" ,
147148 "rimraf" : " ^5.0.0" ,
148149 "rollup" : " ^4.22.4" ,
Original file line number Diff line number Diff line change 1+ # @aws-amplify/ui-svelte
Original file line number Diff line number Diff line change 1- export const VERSION = '4.3.3 ' ;
1+ export const VERSION = '0.0.1 ' ;
Original file line number Diff line number Diff line change 22 * This is a script that generates a constant, `VERSION` with the version
33 * of the package. The version of a package will be used in logging and error messages.
44 */
5- const path = require ( 'path' ) ;
5+ const { resolve , join } = require ( 'path' ) ;
66const fs = require ( 'fs-extra' ) ;
77
88const packages = [
@@ -14,14 +14,13 @@ const packages = [
1414 'packages/react-notifications' ,
1515 'packages/react-liveness' ,
1616 'packages/react-storage' ,
17+ 'packages/svelte' ,
1718 'packages/vue' ,
1819] ;
1920
2021packages . forEach ( ( package ) => {
2122 const { version } = require ( `../${ package } /package.json` ) ;
22-
23- fs . writeFileSync (
24- path . resolve ( `${ package } /src/version.ts` ) ,
25- `export const VERSION = '${ version } ';\n`
26- ) ;
23+ const srcDir = package . includes ( 'svelte' ) ? join ( 'src' , 'lib' ) : 'src' ;
24+ const targetFile = resolve ( join ( package , srcDir , 'version.ts' ) ) ;
25+ fs . writeFileSync ( targetFile , `export const VERSION = '${ version } ';\n` ) ;
2726} ) ;
You can’t perform that action at this time.
0 commit comments