playcademy 0.13.12 → 0.13.13

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,10 @@ 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
+ const config = await loadConfig(configPath);
5464
5464
  const hasDB = hasDatabaseSetup();
5465
5465
  const hasKV = hasKVSetup(config);
5466
5466
  const hasBucket = hasBucketSetup(config);
@@ -8213,9 +8213,10 @@ var initCommand = new Command2("init").description("Initialize a playcademy.conf
8213
8213
  bucket: bucket ?? void 0,
8214
8214
  timeback: timebackConfig ?? void 0
8215
8215
  });
8216
- writeFileSync8(resolve10(getWorkspace(), configFileName), configContent, "utf-8");
8216
+ const configPath = resolve10(getWorkspace(), configFileName);
8217
+ writeFileSync8(configPath, configContent, "utf-8");
8217
8218
  if (database || kv || bucket) {
8218
- await ensurePlaycademyTypes();
8219
+ await ensurePlaycademyTypes(configPath);
8219
8220
  }
8220
8221
  displaySuccessMessage({
8221
8222
  configFileName,
package/dist/utils.js CHANGED
@@ -1541,10 +1541,10 @@ 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
+ const config = await loadConfig(configPath);
1548
1548
  const hasDB = hasDatabaseSetup();
1549
1549
  const hasKV = hasKVSetup(config);
1550
1550
  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.13",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",