From e55c2f5b2cd00a7fdb047850bf99e2b68f3ca673 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Mon, 7 Dec 2020 00:03:16 +0100 Subject: [PATCH] Fix build --- .github/workflows/release.yml | 11 ++++++++--- .gitignore | 1 - README.md | 4 ++-- dist/.gitignore | 3 +++ package.json | 18 +++++------------- 5 files changed, 18 insertions(+), 19 deletions(-) create mode 100644 dist/.gitignore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5d75c57..5b0cbda3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,12 +22,17 @@ jobs: - run: npm version $RELEASE_VERSION --no-git-tag-version + - name: Generate oclif.manifest.json + run: oclif-dev manifest + - name: Compile the source code run: node esbuild.js - - name: Copy package.json - run: cp package.json dist/package.json - + - name: Copy files for release + run: | + cp package.json dist/ + cp package.lock dist/ + cp oclif.manifest.json dist/ - name: Publish run: cd dist && npm publish --access public diff --git a/.gitignore b/.gitignore index 6d99f565..fa32e930 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ *-debug.log *-error.log /.nyc_output -/dist /lib /tmp node_modules diff --git a/README.md b/README.md index 3604f50c..adaa87e4 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,11 @@ lift # Usage ```sh-session -$ npm install -g lift +$ npm install -g @mnapoli/lift $ lift COMMAND running command... $ lift (-v|--version|version) -lift/0.0.1 darwin-x64 node-v15.3.0 +@mnapoli/lift/0.0.1 darwin-x64 node-v15.3.0 $ lift --help [COMMAND] USAGE $ lift COMMAND diff --git a/dist/.gitignore b/dist/.gitignore new file mode 100644 index 00000000..ec8a066a --- /dev/null +++ b/dist/.gitignore @@ -0,0 +1,3 @@ +lift +oclif.manifest.json +package-lock.json diff --git a/package.json b/package.json index 485b27de..d84b2bb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@mnapoli/lift", - "version": "0.0.1", + "license": "proprietary", + "homepage": "https://github.com/mnapoli/lift", "bin": { "lift": "lift" }, @@ -43,11 +44,6 @@ "/npm-shrinkwrap.json", "/oclif.manifest.json" ], - "homepage": "https://github.com/mnapoli/lift", - "keywords": [ - "oclif" - ], - "license": "proprietary", "main": "lib/index.js", "oclif": { "commands": "./lib/commands", @@ -60,12 +56,8 @@ "scripts": { "postpack": "rm -f oclif.manifest.json", "posttest": "eslint . --ext .ts --config .eslintrc", - "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme", - "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"", - "version": "oclif-dev readme && git add README.md" + "prepack": "rm -rf lib && tsc -b && oclif-dev manifest", + "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, - "types": "lib/index.d.ts", - "pkg": { - "scripts": "./lib/**/*.js" - } + "types": "lib/index.d.ts" }