5htp 0.0.5 → 0.0.6-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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp",
3
3
  "description": "5-HTP, scientifically called 5-Hydroxytryptophan, is the precursor of happiness neurotransmitter.",
4
- "version": "0.0.5",
4
+ "version": "0.0.6-2",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-cli.git",
7
7
  "license": "MIT",
@@ -70,7 +70,7 @@
70
70
  "react-dev-utils": "^11.0.4",
71
71
  "speed-measure-webpack-plugin": "^1.5.0",
72
72
  "terser-webpack-plugin": "^5.2.4",
73
- "ts-alias": "^0.0.3-1",
73
+ "ts-alias": "^0.0.4",
74
74
  "ts-node": "^10.9.1",
75
75
  "tslog": "^3.3.4",
76
76
  "webfont": "^11.2.26",
@@ -51,6 +51,7 @@ export default function createCommonConfig( side: TAppSide, mode: TCompileMode )
51
51
  resolveLoader: {
52
52
  // Recherche des loaders dans framework/node_modules (psinon, webpack cherche dans le projet)
53
53
  modules: [
54
+ cli.paths.appRoot + '/node_modules',
54
55
  cli.paths.core.root + '/node_modules',
55
56
  cli.paths.core.cli + '/node_modules',
56
57
  ],
@@ -4,11 +4,6 @@
4
4
 
5
5
  // Npm
6
6
  import webpack from 'webpack';
7
- import TsAlias from 'ts-alias';
8
- import path from 'path';
9
-
10
- // Plugins
11
- var nodeExternals = require('webpack-node-externals');
12
7
 
13
8
  // Minimizers
14
9
  const TerserPlugin = require("terser-webpack-plugin");
@@ -27,8 +22,10 @@ export default function createCompiler( mode: TCompileMode ): webpack.Configurat
27
22
  const dev = mode === 'dev';
28
23
 
29
24
  const commonConfig = createCommonConfig('server', mode);
30
-
31
25
  const { aliases } = cli.paths.aliases.server.forWebpack(cli.paths.app.root + '/node_modules');
26
+
27
+ console.log(`[${mode}] node_modules dirs:`, commonConfig.resolveLoader?.modules,
28
+ '\nModule aliases:', aliases);
32
29
 
33
30
  const config: webpack.Configuration = {
34
31
 
@@ -82,7 +79,7 @@ export default function createCompiler( mode: TCompileMode ): webpack.Configurat
82
79
  if (!shouldCompile) {
83
80
 
84
81
  // Externalize to a commonjs module using the request path
85
- return callback(null, 'commonjs ' + request);
82
+ return callback(undefined, 'commonjs ' + request);
86
83
  }
87
84
 
88
85
  // Continue without externalizing the import
@@ -3,8 +3,11 @@
3
3
  ----------------------------------*/
4
4
 
5
5
  /*
6
- WARNING: This file SHOULDN'T import deps from the project
7
- Because it's imported by the CLI, which should be independant of the app escept for loading config
6
+ NOTE: This is a copy of core/sever/app/config
7
+ We can't import core deps here because it will cause the following error:
8
+ "Can't use import when not a module"
9
+ It will be possible to import core files when the CLI will be compiled as one output file with tsc
10
+ And for that, we need to fix the TS errors for the CLI
8
11
  */
9
12
 
10
13
  // Npm
package/tsconfig.json CHANGED
@@ -25,8 +25,7 @@
25
25
 
26
26
  "paths": {
27
27
  "@cli/*": [ "./*" ],
28
- "@cli": [ "./" ],
29
- "@server_old/*": [ "../src/server/*" ]
28
+ "@cli": [ "./" ]
30
29
  },
31
30
  },
32
31