@hatk/hatk 0.0.1-alpha.1 → 0.0.1-alpha.2

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 CHANGED
@@ -797,7 +797,7 @@ RUN npm ci --omit=dev
797
797
  COPY . .
798
798
  RUN node_modules/.bin/hatk build
799
799
  EXPOSE 3000
800
- CMD ["node", "--experimental-strip-types", "--no-warnings", "node_modules/hatk/src/main.ts", "config.yaml"]
800
+ CMD ["node", "--no-warnings", "node_modules/@hatk/hatk/dist/main.js", "config.yaml"]
801
801
  `);
802
802
  const pkgDeps = { '@hatk/oauth-client': '*', hatk: '*' };
803
803
  const pkgDevDeps = {
@@ -1436,7 +1436,7 @@ else if (command === 'dev') {
1436
1436
  }
1437
1437
  else {
1438
1438
  // No frontend — just run the hatk server directly
1439
- const mainPath = resolve(import.meta.dirname, 'main.ts');
1439
+ const mainPath = resolve(import.meta.dirname, 'main.js');
1440
1440
  execSync(`npx tsx ${mainPath} config.yaml`, { stdio: 'inherit', cwd: process.cwd() });
1441
1441
  }
1442
1442
  }
@@ -1649,7 +1649,7 @@ else if (command === 'schema') {
1649
1649
  }
1650
1650
  else if (command === 'start') {
1651
1651
  try {
1652
- const mainPath = resolve(import.meta.dirname, 'main.ts');
1652
+ const mainPath = resolve(import.meta.dirname, 'main.js');
1653
1653
  execSync(`npx tsx ${mainPath} config.yaml`, { stdio: 'inherit', cwd: process.cwd() });
1654
1654
  }
1655
1655
  catch (e) {
@@ -61,7 +61,7 @@ export function hatk(opts) {
61
61
  };
62
62
  },
63
63
  configureServer(server) {
64
- const mainPath = resolve(import.meta.dirname, 'main.ts');
64
+ const mainPath = resolve(import.meta.dirname, 'main.js');
65
65
  const watchDirs = ['xrpc', 'feeds', 'labels', 'jobs', 'setup', 'lexicons'].filter((d) => existsSync(d));
66
66
  const watchArgs = watchDirs.flatMap((d) => ['--watch-path', d]);
67
67
  serverProcess = spawn('npx', ['tsx', 'watch', ...watchArgs, mainPath, 'config.yaml'], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatk/hatk",
3
- "version": "0.0.1-alpha.1",
3
+ "version": "0.0.1-alpha.2",
4
4
  "bin": {
5
5
  "hatk": "dist/cli.js"
6
6
  },