playcademy 0.13.12 → 0.13.14

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/index.js CHANGED
@@ -5457,10 +5457,11 @@ import { writeFileSync as writeFileSync3 } from "fs";
5457
5457
  import { dirname as dirname4, join as join9 } from "path";
5458
5458
  import { fileURLToPath as fileURLToPath2 } from "url";
5459
5459
  var playcademyEnvTemplate = loadTemplateString("playcademy-env.d.ts");
5460
- async function ensurePlaycademyTypes() {
5460
+ async function ensurePlaycademyTypes(configPath) {
5461
5461
  try {
5462
5462
  const workspace = getWorkspace();
5463
- const config = await loadConfig();
5463
+ console.log({ configPath, workspace });
5464
+ const config = await loadConfig(configPath);
5464
5465
  const hasDB = hasDatabaseSetup();
5465
5466
  const hasKV = hasKVSetup(config);
5466
5467
  const hasBucket = hasBucketSetup(config);
@@ -8213,9 +8214,10 @@ var initCommand = new Command2("init").description("Initialize a playcademy.conf
8213
8214
  bucket: bucket ?? void 0,
8214
8215
  timeback: timebackConfig ?? void 0
8215
8216
  });
8216
- writeFileSync8(resolve10(getWorkspace(), configFileName), configContent, "utf-8");
8217
+ const configPath = resolve10(getWorkspace(), configFileName);
8218
+ writeFileSync8(configPath, configContent, "utf-8");
8217
8219
  if (database || kv || bucket) {
8218
- await ensurePlaycademyTypes();
8220
+ await ensurePlaycademyTypes(configPath);
8219
8221
  }
8220
8222
  displaySuccessMessage({
8221
8223
  configFileName,
package/dist/utils.js CHANGED
@@ -1541,10 +1541,11 @@ function hasKVSetup(config) {
1541
1541
 
1542
1542
  // src/lib/init/types.ts
1543
1543
  var playcademyEnvTemplate = loadTemplateString("playcademy-env.d.ts");
1544
- async function ensurePlaycademyTypes() {
1544
+ async function ensurePlaycademyTypes(configPath) {
1545
1545
  try {
1546
1546
  const workspace = getWorkspace();
1547
- const config = await loadConfig();
1547
+ console.log({ configPath, workspace });
1548
+ const config = await loadConfig(configPath);
1548
1549
  const hasDB = hasDatabaseSetup();
1549
1550
  const hasKV = hasKVSetup(config);
1550
1551
  const hasBucket = hasBucketSetup(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.13.12",
3
+ "version": "0.13.14",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",