@boxes-dev/dvb 1.0.191 → 1.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/scripts/postinstall.cjs +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boxes-dev/dvb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.192",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
"dvb-update": "dist/bin/dvb-update.cjs"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
|
-
"dist"
|
|
15
|
+
"dist",
|
|
16
|
+
"scripts/postinstall.cjs"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
19
|
"build": "npm run build:bundle",
|
|
19
20
|
"build:bundle": "node ./scripts/build-bundle.mjs",
|
|
21
|
+
"postinstall": "node ./scripts/postinstall.cjs",
|
|
20
22
|
"typecheck": "tsc -b",
|
|
21
23
|
"lint": "npm run typecheck",
|
|
22
24
|
"clean": "rm -rf dist"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const isTrue = (value) =>
|
|
4
|
+
typeof value === "string" && value.trim().toLowerCase() === "true";
|
|
5
|
+
|
|
6
|
+
const isGlobalInstall = (env) =>
|
|
7
|
+
isTrue(env.npm_config_global) ||
|
|
8
|
+
(typeof env.npm_config_location === "string" &&
|
|
9
|
+
env.npm_config_location.trim().toLowerCase() === "global");
|
|
10
|
+
|
|
11
|
+
if (isGlobalInstall(process.env)) {
|
|
12
|
+
process.stdout.write(
|
|
13
|
+
"\nInstalled @boxes-dev/dvb.\n" +
|
|
14
|
+
"Next: cd into your development repo directory, then run `dvb init`.\n",
|
|
15
|
+
);
|
|
16
|
+
}
|