sn-typescript-util 1.2.3 → 1.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sn-typescript-util",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A TypeScript utility for ServiceNow developers using VS Code",
5
5
  "bin": {
6
6
  "snts": "bin/snts.js"
@@ -16,6 +16,10 @@
16
16
  "type": "git",
17
17
  "url": "https://github.com/stevengregory/sn-typescript-util.git"
18
18
  },
19
+ "scripts": {
20
+ "release": "./scripts/release.sh",
21
+ "watch": "tsc --watch"
22
+ },
19
23
  "type": "module",
20
24
  "dependencies": {
21
25
  "@clack/prompts": "^0.6.3",
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+
3
+ bump_version() {
4
+ version=$(npm version "$1" --no-git-tag-version)
5
+ echo "version bumped to $version"
6
+ do_git_operation
7
+ }
8
+
9
+ do_git_operation() {
10
+ git commit -a -m "chore: bump the version"
11
+ git tag $(get_package_version)
12
+ }
13
+
14
+ get_package_version() {
15
+ version=`node -p "require('./package.json').version"`
16
+ echo "v$version"
17
+ }
18
+
19
+ bump_version "$1"
package/tsconfig.json CHANGED
@@ -7,5 +7,5 @@
7
7
  "resolveJsonModule": true,
8
8
  "skipLibCheck": true
9
9
  },
10
- "include": ["src"]
10
+ "include": ["scripts"]
11
11
  }
File without changes
File without changes