sbx-utils-lib 2.0.3-test-2 → 2.0.3-test-3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ // post-install.js
2
+
3
+ /**
4
+ * Script to run after npm install
5
+ *
6
+ * Copy selected files to user's directory
7
+ */
8
+
9
+ const gentlyCopy = require('gently-copy')
10
+
11
+ const filesToCopy = ['lib/extended-types.d.ts']
12
+
13
+ // User's local directory
14
+ const userPath = "../../"
15
+
16
+ // Moving files to user's local directory
17
+ gentlyCopy(filesToCopy, userPath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbx-utils-lib",
3
- "version": "2.0.3-test-2",
3
+ "version": "2.0.3-test-3",
4
4
  "description": "utilities for sbx company",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "lib/**/*"
9
9
  ],
10
10
  "scripts": {
11
- "build": "npx tsc && cp -r src/extended-types.d.ts lib/extended-types.d.ts",
11
+ "build": "npx tsc && cp -r src/extended-types.d.ts lib/extended-types.d.ts && cp -r src/postinstallscript.js lib/postinstallscript.js",
12
12
  "copy": "npx tsc && cp -r src/extended-types.d.ts lib/extended-types.d.ts && cp -r lib /Users/frankcarpio/Desktop/Personal/sbx-task-module-ui/lib/sbx-utils-lib",
13
13
  "postinstall": "node lib/postinstallscript.js"
14
14
  },