use-mask-input 3.3.3 โ†’ 3.3.5

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/scripts.sh DELETED
@@ -1,73 +0,0 @@
1
- #!/bin/bash
2
-
3
- # All package scripts to not polute
4
- # package.json file with long scripts
5
-
6
- cmd=$1
7
- args=${@:2}
8
-
9
- function dev() {
10
- echo "๐Ÿš€ Starting dev server...";
11
- npx rollup -c --watch;
12
- };
13
-
14
- function build() {
15
- clean;
16
- echo "๐Ÿ“ฆ Building package...";
17
- npx rollup -c;
18
- };
19
-
20
- function prepare() {
21
- echo "๐Ÿ‘‹ Installing git hooks...";
22
- npx simple-git-hooks >> /dev/null;
23
- build;
24
- };
25
-
26
- function test() {
27
- echo "๐Ÿงช Running tests...";
28
- npx vitest --dir ./src --run --coverage;
29
- };
30
-
31
- function lint() {
32
- echo "๐Ÿงน Linting...";
33
- npx eslint ./src --ext ts,tsx;
34
- };
35
-
36
- function clean() {
37
- echo "๐Ÿงน Cleaning up...";
38
- rm -rf dist;
39
- };
40
-
41
- function postinstall() {
42
- echo "๐Ÿ‘‹ Running patches...";
43
- npx patch-package;
44
- };
45
-
46
- function hello() {
47
- echo "๐Ÿ‘‹ Hello!" $args;
48
- };
49
-
50
- function example() {
51
- echo "๐Ÿ‘‹ Select your example project to run: ";
52
- examples="$(ls ./examples)";
53
-
54
- select example in $examples; do
55
- if [ -n "$example" ]; then
56
- build;
57
- echo "๐Ÿš€ Starting $example...";
58
- cd ./examples/$example;
59
- # if example is cra, run npm start
60
- # else run npm run dev
61
- if [ "$example" = "cra" ]; then
62
- npm start;
63
- else
64
- npm run dev;
65
- fi
66
- break;
67
- else
68
- echo "๐Ÿ‘‹ Select your example project to run: ";
69
- fi
70
- done
71
- };
72
-
73
- eval $cmd $args