sbx-utils-lib 2.0.3 → 2.1.0

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",
3
+ "version": "2.1.0",
4
4
  "description": "utilities for sbx company",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,9 +8,9 @@
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
- "postinstall": "cp lib/extended-types.d.ts ../../"
13
+ "postinstall": "node lib/postinstallscript.js"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">=14.17"
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "date-fns": "^3.6.0",
25
+ "gently-copy": "^3.2.0",
25
26
  "moment": "^2.30.1",
26
27
  "tcs": "^10.0.2",
27
28
  "ts-jest": "^29.2.5",