cortex-tms 2.1.0 → 2.1.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/bin/cortex-tms.js +4 -21
  2. package/package.json +1 -1
package/bin/cortex-tms.js CHANGED
@@ -3,32 +3,15 @@
3
3
  /**
4
4
  * Cortex TMS CLI - Executable Wrapper
5
5
  *
6
- * This is a minimal shebang wrapper that delegates to the TypeScript source.
7
- *
8
- * In development: Uses tsx to execute TypeScript directly
9
- * In production: Will execute compiled JavaScript from dist/
6
+ * Always runs compiled JavaScript from dist/ when installed via NPM.
7
+ * For development with source files, use: npm run cli:dev
10
8
  */
11
9
 
12
- import { createRequire } from 'module';
13
10
  import { fileURLToPath } from 'url';
14
11
  import { dirname, join } from 'path';
15
12
 
16
13
  const __filename = fileURLToPath(import.meta.url);
17
14
  const __dirname = dirname(__filename);
18
- const require = createRequire(import.meta.url);
19
-
20
- // Check if we're running from source (dev) or compiled (prod)
21
- const isSource = process.env.NODE_ENV !== 'production';
22
-
23
- if (isSource) {
24
- // Development: Use tsx to run TypeScript directly
25
- const { register } = await import('tsx/esm/api');
26
- const unregister = register();
27
-
28
- await import(join(__dirname, '../src/cli.js'));
29
15
 
30
- unregister();
31
- } else {
32
- // Production: Run compiled JavaScript
33
- await import(join(__dirname, '../dist/cli.js'));
34
- }
16
+ // Always run compiled JavaScript (production mode)
17
+ await import(join(__dirname, '../dist/cli.js'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-tms",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "The Universal AI-Optimized Project Boilerplate - CLI tool for bootstrapping TMS-structured projects",
5
5
  "type": "module",
6
6
  "bin": {