@common-stack/generate-plugin 6.0.2-alpha.10 → 6.0.2-alpha.11

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.0.2-alpha.11](https://github.com/cdmbase/common-stack/compare/v6.0.2-alpha.10...v6.0.2-alpha.11) (2024-08-23)
7
+
8
+ **Note:** Version bump only for package @common-stack/generate-plugin
9
+
6
10
  ## [6.0.2-alpha.10](https://github.com/cdmbase/common-stack/compare/v6.0.2-alpha.9...v6.0.2-alpha.10) (2024-08-23)
7
11
 
8
12
  **Note:** Version bump only for package @common-stack/generate-plugin
@@ -1,19 +1,13 @@
1
1
  {
2
- "extends": "./tsconfig.base.json",
3
2
  "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": {
5
+ "@src/*": ["src/*"]
6
+ },
4
7
  "sourceMap": true,
5
8
  "declaration": false,
6
9
  "allowSyntheticDefaultImports": true,
7
- "rootDirs": ["./src"],
10
+ "rootDirs": ["./src", "../knexfile.ts"],
8
11
  "outDir": "./dist"
9
- },
10
- "include": [
11
- "../../typings/*.d.ts",
12
- ],
13
- "exclude": [
14
- "node_modules",
15
- "lib",
16
- "dist",
17
- "webpack.config.js"
18
- ]
12
+ },
19
13
  }
@@ -5,6 +5,8 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
5
5
  const nodeExternals = require('webpack-node-externals');
6
6
  const NodemonPlugin = require('nodemon-webpack-plugin'); // Ding
7
7
  const EnvListPlugin = require('@common-stack/env-list-loader');
8
+ const { writeBackendModuleFile } = require('@common-stack/rollup-vite-utils/lib/utils/utils.cjs');
9
+ const packageConfig = require('./config.json');
8
10
  const buildConfig = require('./build.config');
9
11
 
10
12
  const modulenameExtra = process.env.BUILD_MODULE_TO_INCLUDE ? `${process.env.BUILD_MODULE_TO_INCLUDE}|` : '';
@@ -25,6 +27,12 @@ if (process.env.BUILD_MODULE_TO_INCLUDE) {
25
27
  console.log('BUILD_MODULE_TO_INCLUDE is not set.');
26
28
  }
27
29
 
30
+ try {
31
+ writeBackendModuleFile(path.join(__dirname, 'src/modules'), packageConfig);
32
+ } catch (e) {
33
+ console.error(e);
34
+ }
35
+
28
36
  const config = {
29
37
  entry: {
30
38
  index: (process.env.NODE_ENV !== 'production' ? ['webpack/hot/poll?200'] : []).concat([
@@ -8,6 +8,7 @@ import nodeExternals from 'webpack-node-externals';
8
8
  import Dotenv from 'dotenv-webpack';
9
9
  import NodemonPlugin from 'nodemon-webpack-plugin';
10
10
  import EnvListPlugin from '@common-stack/env-list-loader';
11
+ import { writeBackendModuleFile } from '@common-stack/rollup-vite-utils/lib/utils/utils.cjs';
11
12
  import buildConfig from './build.config.mjs';
12
13
 
13
14
  const modulenameExtra = process.env.BUILD_MODULE_TO_INCLUDE ? `${process.env.BUILD_MODULE_TO_INCLUDE}|` : '';
@@ -32,6 +33,12 @@ if (process.env.BUILD_MODULE_TO_INCLUDE) {
32
33
  console.log('BUILD_MODULE_TO_INCLUDE is not set.');
33
34
  }
34
35
 
36
+ try {
37
+ writeBackendModuleFile(path.join(__dirname, 'src/modules'), packageConfig);
38
+ } catch (e) {
39
+ console.error(e);
40
+ }
41
+
35
42
  const config = {
36
43
  entry: {
37
44
  // index: (process.env.NODE_ENV !== 'production' ? ['webpack/hot/poll?200'] : []).concat([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/generate-plugin",
3
- "version": "6.0.2-alpha.10",
3
+ "version": "6.0.2-alpha.11",
4
4
  "type": "module",
5
5
  "main": "./lib/index.mjs",
6
6
  "typings": "./lib/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  },
27
27
  "executors": "./executors.json",
28
28
  "generators": "./generators.json",
29
- "gitHead": "221a1452444ac422b694b7e3225e529fe513a6e3"
29
+ "gitHead": "9f91ac309b8a45339c8ff5e9344092b385be1f7a"
30
30
  }