@powerhousedao/ph-cli 0.40.85-dev.14 → 0.40.85-dev.15
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/dist/package.json
CHANGED
|
@@ -59,7 +59,8 @@ else
|
|
|
59
59
|
# Generate database credentials
|
|
60
60
|
DB_PASSWORD="powerhouse"
|
|
61
61
|
DB_USER="powerhouse"
|
|
62
|
-
|
|
62
|
+
# Convert to lowercase, replace dots with underscores, replace special chars with underscore, ensure starts with letter
|
|
63
|
+
DB_NAME="powerhouse_$(echo "${PROJECT_NAME}" | tr '[:upper:]' '[:lower:]' | sed 's/\./_/g' | sed 's/[^a-z0-9]/_/g' | sed 's/^[^a-z]/p_/' | cut -c1-63)"
|
|
63
64
|
|
|
64
65
|
# Check if database already exists
|
|
65
66
|
if sudo -u postgres psql -lqt | cut -d \| -f 1 | grep -qw $DB_NAME; then
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.40.85-dev.
|
|
1
|
+
export declare const version = "0.40.85-dev.15";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/src/version.js
CHANGED