Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
renhiyama authored and actions-user committed Jan 29, 2024
1 parent 704ff32 commit 3808d1a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
".": "./imports.js",
"./packit": "./packit-intellisense.js"
}
}
}
6 changes: 2 additions & 4 deletions src/cli/cmds/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ export default function (prog) {
scope = scope.replace("/" + scope.split("/")[1], "");
}
let url = `https://esm.sh/${pkgName}${
dependencies[pkgName]
? `@${dependencies[pkgName]}`
: ""
//the package may be scoped. if it is scoped, then use the scope too
dependencies[pkgName] ? `@${dependencies[pkgName]}` : ""
//the package may be scoped. if it is scoped, then use the scope too
}${scope}`;
url = new URL(url);
if (isReactPackage) {
Expand Down
2 changes: 1 addition & 1 deletion src/imports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"type": "git",
"url": "https://github.com/rovelstars/reejs.git"
}
}
}
2 changes: 1 addition & 1 deletion src/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"keywords": [],
"author": "",
"license": "MIT"
}
}
2 changes: 1 addition & 1 deletion src/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"keywords": [],
"author": "",
"license": "MIT"
}
}
2 changes: 1 addition & 1 deletion src/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"dependencies": {
"@reejs/imports": "*"
}
}
}

0 comments on commit 3808d1a

Please sign in to comment.