File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @alloy-js/create" ,
3- "version" : " 0.11.1 " ,
3+ "version" : " 0.11.2 " ,
44 "description" : " Create an Alloy project with npm init @alloy-js" ,
55 "main" : " ./dist/src/index.js" ,
66 "bin" : " ./dist/src/index.js" ,
Original file line number Diff line number Diff line change @@ -43,7 +43,16 @@ async function generateDepsVersions() {
4343 ) ;
4444 versions [ packageName ] = babelPluginJson . version ;
4545 } else if ( packageName . startsWith ( "@alloy-js" ) ) {
46- versions [ packageName ] = packageVersion ;
46+ // remove the scope from the package name
47+ const scopedPackageName = packageName . replace ( "@alloy-js/" , "" ) ;
48+ const scopedPackagePath = path . join (
49+ packageDir ,
50+ `../${ scopedPackageName } /package.json` ,
51+ ) ;
52+ const scopedPackageJson = JSON . parse (
53+ await fs . readFile ( scopedPackagePath , "utf8" ) ,
54+ ) ;
55+ versions [ packageName ] = scopedPackageJson . version ;
4756 } else if ( catalog [ packageName ] ) {
4857 versions [ packageName ] = catalog [ packageName ] ;
4958 } else {
You can’t perform that action at this time.
0 commit comments