diff --git a/package-lock.json b/package-lock.json index a671ae9..95357c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,13 @@ { "name": "@hckrnews/objects", - "version": "6.0.6", + "version": "6.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hckrnews/objects", - "version": "6.0.6", + "version": "6.0.7", + "hasInstallScript": true, "license": "LGPL-3.0", "dependencies": { "@hckrnews/error": "^1.0.1", diff --git a/package.json b/package.json index d1d7e9d..f5c7b11 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@hckrnews/objects", "description": "Create valid JavaScript objects", - "version": "6.0.6", + "version": "6.0.7", "author": { "name": "Pieter Wigboldus", "url": "https://hckr.news/" @@ -14,7 +14,8 @@ "test": "c8 node --test src/", "cpd": "node_modules/jscpd/bin/jscpd src", "vulnerabilities": "npm audit --production", - "build": "microbundle --target node src/objects.js" + "build": "microbundle --target node src/objects.js", + "postinstall": "node postinstall.js" }, "type": "module", "files": [ @@ -29,7 +30,8 @@ "dist/objects.module.mjs", "dist/objects.module.mjs.map", "dist/objects.umd.cjs", - "dist/objects.umd.cjs.map" + "dist/objects.umd.cjs.map", + "postinstall.js" ], "main": "dist/objects.umd.cjs", "source": "src/objects.js", diff --git a/postinstall.js b/postinstall.js new file mode 100644 index 0000000..64a3894 --- /dev/null +++ b/postinstall.js @@ -0,0 +1 @@ +console.log('Thanks for using my package! π★-s');