From 952412275694143c802993e6baba6115d8587dde Mon Sep 17 00:00:00 2001 From: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com> Date: Wed, 21 Oct 2020 22:14:22 +0200 Subject: [PATCH] Rename package for npm --- build.js | 6 ++---- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build.js b/build.js index 49953be..f3e6f53 100644 --- a/build.js +++ b/build.js @@ -1,17 +1,15 @@ const { writeFile } = require('fs').promises const js = require('rosid-handler-js') -const pgk = require('./package.json') - js('src/index.js', { optimize: true, browserify: { - standalone: pgk.name + standalone: 'feedback-js' } }).then((data) => { - return writeFile(`dist/${ pgk.name }.min.js`, data) + return writeFile(`dist/feedback-js.min.js`, data) }) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a08a2b1..b17868b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "feedback-js", + "name": "@betahuhn/feedback-js", "version": "0.2.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 6bd31c5..30d8465 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "feedback-js", + "name": "@betahuhn/feedback-js", "version": "0.2.0", "description": "", "main": "dist/feedback-js.min.js",