my-lib-unique-name 1.0.1 → 1.0.3
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 +3 -3
- package/scripts/install.js +1 -1
- package/scripts/postinstall.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my-lib-unique-name",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Tiny demo library",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"preinstall": "node scripts/preinstall.js",
|
|
14
|
-
"install": "node scripts/
|
|
15
|
-
"postinstall": "node scripts/
|
|
14
|
+
"install": "node scripts/install.js",
|
|
15
|
+
"postinstall": "node scripts/postinstall.js"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"type": "module"
|
package/scripts/install.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from "node:path";
|
|
|
3
3
|
|
|
4
4
|
console.log("[lifecycle-demo] install: running during install");
|
|
5
5
|
|
|
6
|
-
const outPath = path.join(process.cwd()
|
|
6
|
+
const outPath = path.join(process.cwd(), "INSTALL_RAN.txt");
|
|
7
7
|
fs.writeFileSync(outPath, "install script ran\n", "utf8");
|
|
8
8
|
|
|
9
9
|
console.log(`[lifecyle-demo] install: wrote ${outPath}`);
|
package/scripts/postinstall.js
CHANGED
|
@@ -4,6 +4,7 @@ import path from "node:path";
|
|
|
4
4
|
console.log("[lifecyle-demo] postinstall: running after install");
|
|
5
5
|
|
|
6
6
|
const outPath = path.join(process.cwd(), "POSTINSTALL_RAN.txt");
|
|
7
|
+
console.log(outPath);
|
|
7
8
|
fs.writeFileSync(outPath, "postinstall script ran\n", "utf8");
|
|
8
9
|
|
|
9
10
|
console.log(`[lifecyle-demo postinstall: wrote ${outPath}`);
|