From 3808d1a41e34ce83e1e2f7b94ae9cb090a25037e Mon Sep 17 00:00:00 2001 From: renhiyama Date: Mon, 29 Jan 2024 06:47:24 +0000 Subject: [PATCH] Prettified Code! --- package.json | 2 +- src/cli/cmds/init.js | 6 ++---- src/imports/package.json | 2 +- src/react/package.json | 2 +- src/server/package.json | 2 +- src/utils/package.json | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index db11f7e..01ddf61 100644 --- a/package.json +++ b/package.json @@ -32,4 +32,4 @@ ".": "./imports.js", "./packit": "./packit-intellisense.js" } -} \ No newline at end of file +} diff --git a/src/cli/cmds/init.js b/src/cli/cmds/init.js index 5a2c628..bef2a7d 100644 --- a/src/cli/cmds/init.js +++ b/src/cli/cmds/init.js @@ -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) { diff --git a/src/imports/package.json b/src/imports/package.json index a6571a3..2e811bf 100644 --- a/src/imports/package.json +++ b/src/imports/package.json @@ -17,4 +17,4 @@ "type": "git", "url": "https://github.com/rovelstars/reejs.git" } -} \ No newline at end of file +} diff --git a/src/react/package.json b/src/react/package.json index e4fc063..9106335 100644 --- a/src/react/package.json +++ b/src/react/package.json @@ -10,4 +10,4 @@ "keywords": [], "author": "", "license": "MIT" -} \ No newline at end of file +} diff --git a/src/server/package.json b/src/server/package.json index cf87f99..871867e 100644 --- a/src/server/package.json +++ b/src/server/package.json @@ -10,4 +10,4 @@ "keywords": [], "author": "", "license": "MIT" -} \ No newline at end of file +} diff --git a/src/utils/package.json b/src/utils/package.json index a1edba6..3ddf6b2 100644 --- a/src/utils/package.json +++ b/src/utils/package.json @@ -12,4 +12,4 @@ "dependencies": { "@reejs/imports": "*" } -} \ No newline at end of file +}