@homebound/truss 1.112.0 → 1.112.1

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.
Files changed (2) hide show
  1. package/cli.js +3 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // Hook up ts-node so we can require a TypeScript file
4
- require("ts-node/register/transpile-only");
4
+ const { register } = require("ts-node");
5
+ // Pass `module: commonjs` to handle vite projects that use `module: esnext`
6
+ register({ transpileOnly: true, compilerOptions: { module: "commonjs" } });
5
7
 
6
8
  // Get the config from the root project directory
7
9
  const configPath = require("path").join(process.cwd(), "./truss-config.ts");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/truss",
3
- "version": "1.112.0",
3
+ "version": "1.112.1",
4
4
  "main": "build/index.js",
5
5
  "bin": "cli.js",
6
6
  "scripts": {