5htp 0.6.3-5 → 0.6.3-6

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/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ console.log("Running 5HTP via ts-node...");
3
+ require('ts-node/register/transpile-only');
4
+ require('./index.ts');
package/compiler/index.ts CHANGED
@@ -436,7 +436,7 @@ declare module '@server/app' {
436
436
 
437
437
  declare module '@request' {
438
438
  import type { TRouterContext } from '@server/services/router/response';
439
- const routerContext: TRouterContext<UniqueDomains["Router"]>;
439
+ const routerContext: TRouterContext<CrossPath["Router"]>;
440
440
  export = routerContext;
441
441
  }
442
442
 
package/index.ts CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env -S npx ts-node
2
-
3
1
  process.traceDeprecation = true;
4
2
 
5
3
  /*----------------------------------
@@ -186,4 +184,4 @@ export class CLI {
186
184
 
187
185
  }
188
186
 
189
- export default new CLI()
187
+ export default new CLI()
package/package.json CHANGED
@@ -1,25 +1,13 @@
1
1
  {
2
2
  "name": "5htp",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.6.3-5",
4
+ "version": "0.6.3-6",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp.git",
7
7
  "license": "MIT",
8
8
  "bin": {
9
- "5htp": "bin/5htp.js"
9
+ "5htp": "cli.js"
10
10
  },
11
- "files": [
12
- "app/**/*",
13
- "bin/5htp.js",
14
- "commands/**/*",
15
- "compiler/**/*",
16
- "index.ts",
17
- "paths.ts",
18
- "print.ts",
19
- "readme.md",
20
- "tsconfig.json",
21
- "utils/**/*"
22
- ],
23
11
  "engines": {
24
12
  "node": ">=16.1.0",
25
13
  "npm": ">=3.10.10"
package/tsconfig.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+
3
4
 
4
5
  "esModuleInterop": true,
5
6
  "skipLibCheck": true,
package/bin/5htp.js DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- console.log('=== 5HTP ===');
4
-
5
- require('ts-node').register({
6
- transpileOnly: true,
7
- compilerOptions: {
8
- module: 'CommonJS',
9
- moduleResolution: 'Node'
10
- }
11
- });
12
-
13
- require('../index.ts');