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",