From 236cb3f7a12b8be827ead953d1217c2be587e0ec Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 4 Apr 2021 17:48:19 +0200 Subject: [PATCH] chore: rename nu to nuxt-cli --- packages/cli/bin/nuxt.js | 3 +++ packages/{nu => cli}/package.json | 8 ++++++-- packages/{nu => cli}/src/index.ts | 0 packages/nu/bin/nu.js | 3 --- yarn.lock | 18 ++++++++++-------- 5 files changed, 19 insertions(+), 13 deletions(-) create mode 100755 packages/cli/bin/nuxt.js rename packages/{nu => cli}/package.json (68%) rename packages/{nu => cli}/src/index.ts (100%) delete mode 100755 packages/nu/bin/nu.js diff --git a/packages/cli/bin/nuxt.js b/packages/cli/bin/nuxt.js new file mode 100755 index 0000000000..c28a2caa4a --- /dev/null +++ b/packages/cli/bin/nuxt.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require('../dist').main() diff --git a/packages/nu/package.json b/packages/cli/package.json similarity index 68% rename from packages/nu/package.json rename to packages/cli/package.json index a206da0771..4699710753 100644 --- a/packages/nu/package.json +++ b/packages/cli/package.json @@ -1,10 +1,14 @@ { - "name": "@nuxt/nu", + "name": "nuxt-cli", "version": "0.1.0", "repository": "nuxt/framework", "license": "MIT", "main": "./dist/index.js", - "bin": "./bin/nu.js", + "bin": { + "nu": "./bin/nuxt.js", + "nuxt": "./bin/nuxt.js", + "nuxt-cli": "./bin/nuxt.js" + }, "files": [ "bin", "dist" diff --git a/packages/nu/src/index.ts b/packages/cli/src/index.ts similarity index 100% rename from packages/nu/src/index.ts rename to packages/cli/src/index.ts diff --git a/packages/nu/bin/nu.js b/packages/nu/bin/nu.js deleted file mode 100755 index 6243ac7577..0000000000 --- a/packages/nu/bin/nu.js +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node - -require('..').main() diff --git a/yarn.lock b/yarn.lock index e97c8ef53b..2cbe0616f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1830,14 +1830,6 @@ __metadata: languageName: unknown linkType: soft -"@nuxt/nu@workspace:packages/nu": - version: 0.0.0-use.local - resolution: "@nuxt/nu@workspace:packages/nu" - bin: - nu: ./bin/nu.js - languageName: unknown - linkType: soft - "@nuxt/un@npm:^0.1.1": version: 0.1.1 resolution: "@nuxt/un@npm:0.1.1" @@ -10328,6 +10320,16 @@ __metadata: languageName: node linkType: hard +"nuxt-cli@workspace:packages/cli": + version: 0.0.0-use.local + resolution: "nuxt-cli@workspace:packages/cli" + bin: + nu: ./bin/nuxt.js + nuxt: ./bin/nuxt.js + nuxt-cli: ./bin/nuxt.js + languageName: unknown + linkType: soft + "nuxt-framework@workspace:.": version: 0.0.0-use.local resolution: "nuxt-framework@workspace:."