@email-utils/validator-syntax 0.0.1-1 → 0.0.1-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/bin/tag.sh +17 -6
- package/package.json +6 -5
package/bin/tag.sh
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
echo "Creating a $1 verion."
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
if [ $1 ]; then
|
|
4
|
+
echo "Creating a new $1 version."
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
npm version $1
|
|
7
|
+
version=`node -e "console.log(require('./package.json').version);"`
|
|
8
|
+
|
|
9
|
+
npm run build
|
|
10
|
+
git add -A
|
|
11
|
+
git commit -m "Build for $version."
|
|
12
|
+
|
|
13
|
+
echo "Publishing version $version."
|
|
14
|
+
|
|
15
|
+
git push
|
|
16
|
+
git push --tags
|
|
17
|
+
npm publish --access public
|
|
18
|
+
else
|
|
19
|
+
echo "No version type provided. (ie. ./bin/tag.sh version)";
|
|
20
|
+
fi
|
|
8
21
|
|
|
9
|
-
git push --tags
|
|
10
|
-
npm publish --access public
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@email-utils/validator-syntax",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-5",
|
|
4
4
|
"description": "Configurable email syntax validator.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|
|
8
8
|
"test": "ts-mocha test/**/*.test.ts",
|
|
9
|
-
"report-coverage": "nyc npm test"
|
|
9
|
+
"report-coverage": "nyc npm test",
|
|
10
|
+
"release": "./bin/tag.sh"
|
|
10
11
|
},
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
@@ -22,6 +23,9 @@
|
|
|
22
23
|
},
|
|
23
24
|
"author": "Simeon Smith <hello@simeonsmith.dev> (https://www.simeonsmith.dev)",
|
|
24
25
|
"license": "MIT",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"tlds": "^1.226.0"
|
|
28
|
+
},
|
|
25
29
|
"devDependencies": {
|
|
26
30
|
"@types/chai": "^4.2.22",
|
|
27
31
|
"@types/mocha": "^9.0.0",
|
|
@@ -80,8 +84,5 @@
|
|
|
80
84
|
"prettier": {
|
|
81
85
|
"semi": false,
|
|
82
86
|
"singleQuote": true
|
|
83
|
-
},
|
|
84
|
-
"dependencies": {
|
|
85
|
-
"tlds": "^1.226.0"
|
|
86
87
|
}
|
|
87
88
|
}
|