postgresdk 0.6.16 → 0.6.17
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/cli.js +2 -38
- package/dist/index.js +2 -38
- package/package.json +1 -1
package/dist/cli.js
CHANGED
@@ -3287,42 +3287,6 @@ export TEST_API_URL="http://localhost:3000"
|
|
3287
3287
|
echo "⏳ Waiting for database..."
|
3288
3288
|
sleep 3
|
3289
3289
|
|
3290
|
-
# REQUIRED: Run migrations on the test database
|
3291
|
-
echo ""
|
3292
|
-
echo "\uD83D\uDCCA Database Migration Step"
|
3293
|
-
echo "========================================="
|
3294
|
-
echo ""
|
3295
|
-
echo "⚠️ IMPORTANT: You must run migrations before tests can work!"
|
3296
|
-
echo ""
|
3297
|
-
echo "Choose one of the following options:"
|
3298
|
-
echo ""
|
3299
|
-
echo "Option 1: Add your migration command (recommended):"
|
3300
|
-
echo " Uncomment and modify one of these examples:"
|
3301
|
-
echo ""
|
3302
|
-
echo " # For Prisma:"
|
3303
|
-
echo " # npx prisma migrate deploy"
|
3304
|
-
echo ""
|
3305
|
-
echo " # For Drizzle:"
|
3306
|
-
echo " # npx drizzle-kit push --config=./drizzle.config.ts"
|
3307
|
-
echo ""
|
3308
|
-
echo " # For node-pg-migrate:"
|
3309
|
-
echo " # npm run migrate up"
|
3310
|
-
echo ""
|
3311
|
-
echo " # For Knex:"
|
3312
|
-
echo " # npx knex migrate:latest"
|
3313
|
-
echo ""
|
3314
|
-
echo " # For TypeORM:"
|
3315
|
-
echo " # npm run typeorm migration:run"
|
3316
|
-
echo ""
|
3317
|
-
echo " # For custom migration scripts:"
|
3318
|
-
echo " # node ./scripts/migrate.js"
|
3319
|
-
echo ""
|
3320
|
-
echo "Option 2: Skip migrations (only if your database is already set up):"
|
3321
|
-
echo " Uncomment the line: # SKIP_MIGRATIONS=true"
|
3322
|
-
echo ""
|
3323
|
-
echo "========================================="
|
3324
|
-
echo ""
|
3325
|
-
|
3326
3290
|
# MIGRATION_COMMAND:
|
3327
3291
|
# Add your migration command here. Examples using PROJECT_ROOT:
|
3328
3292
|
# MIGRATION_COMMAND="cd $PROJECT_ROOT && npx prisma migrate deploy"
|
@@ -3340,7 +3304,7 @@ if [ -z "\${MIGRATION_COMMAND}" ] && [ -z "\${SKIP_MIGRATIONS}" ]; then
|
|
3340
3304
|
echo " 1. Set MIGRATION_COMMAND with your migration command"
|
3341
3305
|
echo " 2. Set SKIP_MIGRATIONS=true if migrations aren't needed"
|
3342
3306
|
echo ""
|
3343
|
-
echo "
|
3307
|
+
echo " See the comments above for examples."
|
3344
3308
|
echo ""
|
3345
3309
|
exit 1
|
3346
3310
|
fi
|
@@ -4194,7 +4158,7 @@ async function generate(configPath) {
|
|
4194
4158
|
});
|
4195
4159
|
files.push({
|
4196
4160
|
path: join(testDir, "run-tests.sh"),
|
4197
|
-
content: emitTestScript(testFramework,
|
4161
|
+
content: emitTestScript(testFramework, testDir)
|
4198
4162
|
});
|
4199
4163
|
files.push({
|
4200
4164
|
path: join(testDir, ".gitignore"),
|
package/dist/index.js
CHANGED
@@ -3024,42 +3024,6 @@ export TEST_API_URL="http://localhost:3000"
|
|
3024
3024
|
echo "⏳ Waiting for database..."
|
3025
3025
|
sleep 3
|
3026
3026
|
|
3027
|
-
# REQUIRED: Run migrations on the test database
|
3028
|
-
echo ""
|
3029
|
-
echo "\uD83D\uDCCA Database Migration Step"
|
3030
|
-
echo "========================================="
|
3031
|
-
echo ""
|
3032
|
-
echo "⚠️ IMPORTANT: You must run migrations before tests can work!"
|
3033
|
-
echo ""
|
3034
|
-
echo "Choose one of the following options:"
|
3035
|
-
echo ""
|
3036
|
-
echo "Option 1: Add your migration command (recommended):"
|
3037
|
-
echo " Uncomment and modify one of these examples:"
|
3038
|
-
echo ""
|
3039
|
-
echo " # For Prisma:"
|
3040
|
-
echo " # npx prisma migrate deploy"
|
3041
|
-
echo ""
|
3042
|
-
echo " # For Drizzle:"
|
3043
|
-
echo " # npx drizzle-kit push --config=./drizzle.config.ts"
|
3044
|
-
echo ""
|
3045
|
-
echo " # For node-pg-migrate:"
|
3046
|
-
echo " # npm run migrate up"
|
3047
|
-
echo ""
|
3048
|
-
echo " # For Knex:"
|
3049
|
-
echo " # npx knex migrate:latest"
|
3050
|
-
echo ""
|
3051
|
-
echo " # For TypeORM:"
|
3052
|
-
echo " # npm run typeorm migration:run"
|
3053
|
-
echo ""
|
3054
|
-
echo " # For custom migration scripts:"
|
3055
|
-
echo " # node ./scripts/migrate.js"
|
3056
|
-
echo ""
|
3057
|
-
echo "Option 2: Skip migrations (only if your database is already set up):"
|
3058
|
-
echo " Uncomment the line: # SKIP_MIGRATIONS=true"
|
3059
|
-
echo ""
|
3060
|
-
echo "========================================="
|
3061
|
-
echo ""
|
3062
|
-
|
3063
3027
|
# MIGRATION_COMMAND:
|
3064
3028
|
# Add your migration command here. Examples using PROJECT_ROOT:
|
3065
3029
|
# MIGRATION_COMMAND="cd $PROJECT_ROOT && npx prisma migrate deploy"
|
@@ -3077,7 +3041,7 @@ if [ -z "\${MIGRATION_COMMAND}" ] && [ -z "\${SKIP_MIGRATIONS}" ]; then
|
|
3077
3041
|
echo " 1. Set MIGRATION_COMMAND with your migration command"
|
3078
3042
|
echo " 2. Set SKIP_MIGRATIONS=true if migrations aren't needed"
|
3079
3043
|
echo ""
|
3080
|
-
echo "
|
3044
|
+
echo " See the comments above for examples."
|
3081
3045
|
echo ""
|
3082
3046
|
exit 1
|
3083
3047
|
fi
|
@@ -3931,7 +3895,7 @@ async function generate(configPath) {
|
|
3931
3895
|
});
|
3932
3896
|
files.push({
|
3933
3897
|
path: join(testDir, "run-tests.sh"),
|
3934
|
-
content: emitTestScript(testFramework,
|
3898
|
+
content: emitTestScript(testFramework, testDir)
|
3935
3899
|
});
|
3936
3900
|
files.push({
|
3937
3901
|
path: join(testDir, ".gitignore"),
|