@flatjs/evolve 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/create-webpack/create-plugins.d.ts +1 -1
- package/dist/create-webpack/load-watch-options.d.ts +1 -1
- package/dist/create-webpack/load-webpack-config.d.ts +1 -1
- package/dist/helpers/custom-listr-renderer.d.ts +1 -1
- package/dist/helpers/get-stats-file-name.d.ts +1 -1
- package/dist/helpers/normalize-entry-module-absolute-path.d.ts +2 -2
- package/dist/main/prepare-build.d.ts +1 -1
- package/dist/main/start-analyzer.d.ts +1 -1
- package/dist/main/start-build-worker.d.ts +2 -2
- package/dist/main/start-build.d.ts +1 -1
- package/dist/main/start-group-entry-build.d.ts +1 -1
- package/dist/plugins/multi-html/multi-html-modify-plugin.d.ts +2 -2
- package/dist/plugins/stats-webpack/helper-write-stats.d.ts +1 -1
- package/dist/plugins/stats-webpack/index.d.ts +1 -1
- package/dist/plugins/stats-webpack/stats-webpack-plugin.d.ts +1 -1
- package/dist/plugins/ts-checker/ts-checker-guard-plugin.js +1 -1
- package/dist/types/types-dev-server.d.ts +2 -1
- package/package.json +8 -8
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FlatCliOptions } from '../types/types-cli-options.js';
|
1
|
+
import type { FlatCliOptions } from '../types/types-cli-options.js';
|
2
2
|
import { type EntryMapItem } from '../types/types-entry-map.js';
|
3
3
|
import { type FlatEvolveOptions } from '../types/types-options.js';
|
4
4
|
import { type FlatEvolveWebpackOptions } from '../types/types-webpack.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type FlatEvolveDevServerOptions } from '../types/types-dev-server.js';
|
2
|
-
import { EvolveEntryMap } from '../types/types-entry-map.js';
|
2
|
+
import type { EvolveEntryMap } from '../types/types-entry-map.js';
|
3
3
|
import { type FlatEvolveOptions } from '../types/types-options.js';
|
4
4
|
/**
|
5
5
|
* Loads the watch options for webpack configuration.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type Configuration } from 'webpack';
|
2
|
-
import { FlatCliOptions } from '../types/types-cli-options.js';
|
2
|
+
import type { FlatCliOptions } from '../types/types-cli-options.js';
|
3
3
|
import { type EvolveEntryMap } from '../types/types-entry-map.js';
|
4
4
|
import { type FlatEvolveOptions } from '../types/types-options.js';
|
5
5
|
/**
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatsCompilation } from 'webpack';
|
1
|
+
import type { StatsCompilation } from 'webpack';
|
2
2
|
export declare const getStatsFileName: (stats: StatsCompilation) => string;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { EvolveEntryMap } from '../types/types-entry-map.js';
|
2
|
-
import { FlatEvolveOptions } from '../types/types-options.js';
|
1
|
+
import type { EvolveEntryMap } from '../types/types-entry-map.js';
|
2
|
+
import type { FlatEvolveOptions } from '../types/types-options.js';
|
3
3
|
/**
|
4
4
|
* Normalizes the absolute paths of entry modules based on the provided evolve options and entry map.
|
5
5
|
*
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FlatCliOptions } from '../types/types-cli-options.js';
|
1
|
+
import type { FlatCliOptions } from '../types/types-cli-options.js';
|
2
2
|
import { type EvolveEntryMap } from '../types/types-entry-map.js';
|
3
3
|
import { type FlatEvolveOptions } from '../types/types-options.js';
|
4
4
|
import { type EvolveBuildResult } from './start-group-entry-build.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type AnalyzeServeOptions } from '../types/types-analyzer.js';
|
2
|
-
import { FlatEvolveOptions } from '../types/types-options.js';
|
2
|
+
import type { FlatEvolveOptions } from '../types/types-options.js';
|
3
3
|
/**
|
4
4
|
* Starts the analysis process for the given evolve options and analyze options.
|
5
5
|
*
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { MessageChannel } from 'node:worker_threads';
|
1
|
+
import type { MessageChannel } from 'node:worker_threads';
|
2
2
|
import { type ConfigLoaderOptions } from '../load-config/types.js';
|
3
|
-
import { FlatCliOptions } from '../types/types-cli-options.js';
|
3
|
+
import type { FlatCliOptions } from '../types/types-cli-options.js';
|
4
4
|
import { type EvolveBuildResult } from './start-group-entry-build.js';
|
5
5
|
/**
|
6
6
|
* FIXME: The main entry to start an evolve `build`, NOTE: avoid pass configuration with `function` here.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PartialDeep } from 'type-fest';
|
2
2
|
import { type ConfigLoaderOptions } from '../load-config/types.js';
|
3
|
-
import { FlatCliOptions } from '../types/types-cli-options.js';
|
3
|
+
import type { FlatCliOptions } from '../types/types-cli-options.js';
|
4
4
|
import { type FlatEvolveOptions } from '../types/types-options.js';
|
5
5
|
import { type EvolveBuildResult } from './start-group-entry-build.js';
|
6
6
|
export declare const startBuild: (projectCwd: string, buildModules: string[], overrideEvolveOptions?: PartialDeep<FlatEvolveOptions>, configLoaderOptions?: ConfigLoaderOptions, cliOptions?: FlatCliOptions) => Promise<EvolveBuildResult[]>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FlatCliOptions } from '../types/types-cli-options.js';
|
1
|
+
import type { FlatCliOptions } from '../types/types-cli-options.js';
|
2
2
|
import { type EvolveEntryMap } from '../types/types-entry-map.js';
|
3
3
|
import { type FlatEvolveOptions } from '../types/types-options.js';
|
4
4
|
export type EvolveBuildResult = {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Compiler } from 'webpack';
|
2
|
-
import { EntryMapItem } from '../../types/types-entry-map.js';
|
1
|
+
import type { Compiler } from 'webpack';
|
2
|
+
import type { EntryMapItem } from '../../types/types-entry-map.js';
|
3
3
|
/**
|
4
4
|
* The MultiHtmlModifyPlugin class is responsible for modifying the HTML output of the webpack compiler.
|
5
5
|
* It hooks into the compilation process and replaces occurrences of "<%= title %>" with the title specified in the options.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type WebpackPlugin } from '../../create-webpack/types.js';
|
2
|
-
import { FlatCliOptions } from '../../types/types-cli-options.js';
|
2
|
+
import type { FlatCliOptions } from '../../types/types-cli-options.js';
|
3
3
|
import { type FlatEvolveOptions } from '../../types/types-options.js';
|
4
4
|
/**
|
5
5
|
* Creates an array of Webpack plugins for generating stats files.
|
@@ -1 +1 @@
|
|
1
|
-
import ForkTsCheckerWebpackPlugin from"fork-ts-checker-webpack-plugin";import{mergeOptions}from"@flatjs/common";export class TsCheckerGuardPlugin{constructor(r={}){this.options=mergeOptions({autoExit:!1},r)}apply(r){ForkTsCheckerWebpackPlugin.getCompilerHooks(r).issues.tap("issues",(r=>{const{autoExit:
|
1
|
+
import ForkTsCheckerWebpackPlugin from"fork-ts-checker-webpack-plugin";import{logger,mergeOptions}from"@flatjs/common";export class TsCheckerGuardPlugin{constructor(r={}){this.options=mergeOptions({autoExit:!1},r)}apply(r){const t=ForkTsCheckerWebpackPlugin.getCompilerHooks(r);t.start.tap("start",(r=>(logger.info("Check typing..."),r))),t.issues.tap("issues",(r=>{const{autoExit:t}=this.options,o=r.filter((r=>"error"===r.severity));if(t&&o?.length>0)throw new Error(`TS_CHECKER_ERROR: \n ${JSON.stringify(o,null,2)}`);return r}))}}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { type RequestHandler } from 'express';
|
2
|
-
import
|
2
|
+
import type { Middleware } from 'webpack-dev-server';
|
3
|
+
import { type ClientConfiguration, type WebSocketURL } from 'webpack-dev-server';
|
3
4
|
import { type FlatMockOptions, type SecureContextHttps } from '@flatjs/mock';
|
4
5
|
import { type EvolveEntryMapContent } from './types-entry-map.js';
|
5
6
|
export interface WebpackWatchOptions {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.6",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -40,9 +40,9 @@
|
|
40
40
|
"@armit/file-utility": "^0.2.6",
|
41
41
|
"@armit/git": "^0.2.6",
|
42
42
|
"@armit/package": "^0.2.10",
|
43
|
-
"@babel/core": "^7.25.
|
43
|
+
"@babel/core": "^7.25.9",
|
44
44
|
"@clack/prompts": "^0.7.0",
|
45
|
-
"@discoveryjs/json-ext": "0.6.
|
45
|
+
"@discoveryjs/json-ext": "0.6.2",
|
46
46
|
"@flatjs/babel-plugin-import": "2.1.4",
|
47
47
|
"@flatjs/common": "2.1.4",
|
48
48
|
"@flatjs/evolve-preset-babel": "2.1.4",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"express": "^4.21.1",
|
61
61
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
62
62
|
"happy-dom": "^15.7.4",
|
63
|
-
"html-webpack-plugin": "^5.6.
|
63
|
+
"html-webpack-plugin": "^5.6.3",
|
64
64
|
"image-minimizer-webpack-plugin": "^4.1.0",
|
65
65
|
"less": "^4.2.0",
|
66
66
|
"less-loader": "^12.2.0",
|
@@ -89,12 +89,12 @@
|
|
89
89
|
"@dimjs/model-react": "2.0.1",
|
90
90
|
"@dimjs/utils": "2.0.2",
|
91
91
|
"@flatjs/testing": "2.1.4",
|
92
|
-
"@hyperse/eslint-config-hyperse": "^1.
|
93
|
-
"@swc/core": "1.7.
|
92
|
+
"@hyperse/eslint-config-hyperse": "^1.2.6",
|
93
|
+
"@swc/core": "1.7.39",
|
94
94
|
"@types/express": "5.0.0",
|
95
95
|
"@types/listr": "0.14.9",
|
96
|
-
"@types/node": "22.7.
|
97
|
-
"eslint": "^9.
|
96
|
+
"@types/node": "22.7.9",
|
97
|
+
"eslint": "^9.13.0",
|
98
98
|
"imagemin-gifsicle": "7.0.0",
|
99
99
|
"imagemin-jpegtran": "8.0.0",
|
100
100
|
"imagemin-pngquant": "10.0.0",
|