Skip to content

Commit

Permalink
Included src in built package
Browse files Browse the repository at this point in the history
  • Loading branch information
kael-shipman committed Jan 17, 2024
1 parent 9985fb0 commit 910cbe5
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 35 deletions.
7 changes: 4 additions & 3 deletions libs/ts-simple-db-mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/wymp/ts-simple-interfaces/issues",
"dependencies": {
"@wymp/ts-simple-interfaces": "workspace:^0.4.1 || ^0.5.0 || ^0.6.0 || ^0.7.0",
"mysql2": "^3.7.0"
"mysql2": "^2.0.0 || ^3.7.0"
},
"description": "A Simple™-conformant wrapper around mysql",
"devDependencies": {
Expand All @@ -12,7 +12,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -41,5 +42,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-http-client-axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -40,5 +41,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-http-client-rpn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -45,5 +46,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-http-server-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -46,5 +47,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-interfaces-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"homepage": "https://github.com/kael-shipman/ts-simple-interfaces",
"license": "MIT",
Expand Down Expand Up @@ -42,5 +43,5 @@
"prettier:fix": "../../scripts/prettier-fix.sh",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"homepage": "https://github.com/kael-shipman/ts-simple-interfaces",
"license": "MIT",
Expand Down Expand Up @@ -42,5 +43,5 @@
"prettier:fix": "../../scripts/prettier-fix.sh",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-logger-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -39,5 +40,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-logger-winston/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -40,5 +41,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
5 changes: 3 additions & 2 deletions libs/ts-simple-pubsub-amqp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"files": [
"dist",
"README.md"
"README.md",
"src"
],
"license": "ISC",
"main": "src/index.ts",
Expand Down Expand Up @@ -45,5 +46,5 @@
"test": "jest tests/",
"typecheck": "../../scripts/typecheck.sh"
},
"version": "0.7.3"
"version": "0.7.4"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"@types/node": "$@types/node"
}
},
"version": "0.7.3"
"version": "0.7.4"
}
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 26 additions & 14 deletions scripts/.internal/pkgjson.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,34 @@ function exit_with_error() {
}

function process_set_args() {
SET_KEY="$1"
SET_VAL="$2"
while [ $# -gt 0 ]; do
case "$1" in
-j|--json)
JSON="true"
shift
;;

-m|--merge)
JSON="true"
OPERATOR="+="
shift
;;

*)
if [ -z "$SET_KEY" ]; then
SET_KEY="$1"
elif [ -z "$SET_VAL" ]; then
SET_VAL="$1"
else
exit_with_error "Unknown argument: '$1'"
fi
shift
;;
esac
done

if [ -z "$SET_KEY" ]; then exit_with_error "No key specified"; fi
if [ -z "$SET_VAL" ]; then exit_with_error "No value specified"; fi
if [ -n "$3" ]; then exit_with_error "Unknown argument: '$3'"; fi
}

function process_del_args() {
Expand Down Expand Up @@ -121,17 +144,6 @@ while [ $# -gt 0 ]; do
shift 2
;;

-j|--json)
JSON="true"
shift
;;

-m|--merge)
JSON="true"
OPERATOR="+="
shift
;;

-d|--dry-run)
DRY_RUN="true"
shift
Expand Down

0 comments on commit 910cbe5

Please sign in to comment.