@nsshunt/stsutils 1.14.9 → 1.15.0
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/build.sh +29 -0
- package/package.json +9 -14
package/build.sh
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
rm -rf dist
|
|
3
|
+
rm -rf types
|
|
4
|
+
npm run build
|
|
5
|
+
RESULT=$?
|
|
6
|
+
if [ $RESULT -eq 0 ]; then
|
|
7
|
+
echo success build
|
|
8
|
+
npm run lint
|
|
9
|
+
RESULT=$?
|
|
10
|
+
if [ $RESULT -eq 0 ]; then
|
|
11
|
+
echo success lint
|
|
12
|
+
npm run test
|
|
13
|
+
RESULT=$?
|
|
14
|
+
if [ $RESULT -eq 0 ]; then
|
|
15
|
+
echo success test
|
|
16
|
+
git commit -a -m "changed"
|
|
17
|
+
npm version patch
|
|
18
|
+
npm i
|
|
19
|
+
git commit -a -m "changed"
|
|
20
|
+
git push
|
|
21
|
+
else
|
|
22
|
+
echo failed test
|
|
23
|
+
fi
|
|
24
|
+
else
|
|
25
|
+
echo failed lint
|
|
26
|
+
fi
|
|
27
|
+
else
|
|
28
|
+
echo failed build
|
|
29
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nsshunt/stsutils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
|
-
|
|
8
7
|
"scripts": {
|
|
9
8
|
"lint": "eslint . --ext js,jsx,ts,tsx --fix",
|
|
10
9
|
"test": "jest --detectOpenHandles --no-cache",
|
|
@@ -25,21 +24,17 @@
|
|
|
25
24
|
"parser": "@babel/eslint-parser"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
|
-
"@babel/
|
|
29
|
-
"@babel/
|
|
30
|
-
"@
|
|
31
|
-
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
|
32
|
-
"@babel/preset-env": "^7.16.11",
|
|
33
|
-
"@babel/preset-typescript": "^7.16.7",
|
|
34
|
-
"@types/jest": "^27.4.1",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
36
|
-
"@typescript-eslint/parser": "^5.21.0",
|
|
27
|
+
"@babel/preset-env": "^7.18.2",
|
|
28
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
29
|
+
"@tsconfig/node18": "^1.0.0",
|
|
37
30
|
"@types/debug": "^4.1.7",
|
|
38
|
-
"
|
|
31
|
+
"@types/jest": "^27.5.1",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
33
|
+
"@typescript-eslint/parser": "^5.27.0",
|
|
34
|
+
"eslint": "^8.16.0",
|
|
39
35
|
"jest": "^28.0.2",
|
|
40
36
|
"supertest": "^6.2.2",
|
|
41
|
-
"typescript": "^4.
|
|
42
|
-
"@tsconfig/node18": "^1.0.0"
|
|
37
|
+
"typescript": "^4.7.2"
|
|
43
38
|
},
|
|
44
39
|
"dependencies": {
|
|
45
40
|
"ajv": "^8.11.0",
|