@jakesidsmith/tsb 1.0.1 → 2.0.0
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/.nvmrc +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/webpack-callback.d.ts +1 -1
- package/package.json +8 -8
- package/src/types.ts +3 -3
- package/src/webpack-callback.ts +1 -1
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.17.0
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Configuration,
|
|
1
|
+
import { Configuration, WebpackPluginInstance, RuleSetRule as WebpackModuleRule } from 'webpack';
|
|
2
2
|
import { Configuration as DevServerConfiguration } from 'webpack-dev-server';
|
|
3
3
|
import { PluginItem as BabelPluginItem } from '@babel/core';
|
|
4
4
|
export interface Config {
|
|
@@ -101,7 +101,7 @@ export interface Config {
|
|
|
101
101
|
/**
|
|
102
102
|
* @description Extend the webpack plugins
|
|
103
103
|
*/
|
|
104
|
-
extendWebpackPlugins?: (plugins:
|
|
104
|
+
extendWebpackPlugins?: (plugins: WebpackPluginInstance[], mode: Mode, command: Command) => WebpackPluginInstance[];
|
|
105
105
|
/**
|
|
106
106
|
* @description Extend the webpack module.rules
|
|
107
107
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jakesidsmith/tsb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Dead simple TypeScript bundler, watcher, dev server, transpiler, and polyfiller",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
"@types/babel__core": "^7.1.14",
|
|
50
50
|
"@types/semver": "^7.3.4",
|
|
51
51
|
"@types/webpack-dev-server": "^3.11.1",
|
|
52
|
-
"babel-loader": "^
|
|
52
|
+
"babel-loader": "^9.1.2",
|
|
53
53
|
"chalk": "^4.1.0",
|
|
54
54
|
"core-js": "^3.7.0",
|
|
55
55
|
"dotenv": "^8.2.0",
|
|
56
56
|
"fork-ts-checker-webpack-plugin": "^6.0.3",
|
|
57
|
-
"html-webpack-harddisk-plugin": "^
|
|
58
|
-
"html-webpack-plugin": "^
|
|
57
|
+
"html-webpack-harddisk-plugin": "^2.0.0",
|
|
58
|
+
"html-webpack-plugin": "^5.5.3",
|
|
59
59
|
"jargs": "^0.4.7",
|
|
60
60
|
"rimraf": "^3.0.2",
|
|
61
61
|
"semver": "^7.3.2",
|
|
62
|
-
"ts-loader": "^
|
|
63
|
-
"tsconfig-paths-webpack-plugin": "^
|
|
62
|
+
"ts-loader": "^9.4.4",
|
|
63
|
+
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
64
64
|
"typescript": "^5.0.2",
|
|
65
|
-
"webpack": "^
|
|
66
|
-
"webpack-dev-server": "^3.11.
|
|
65
|
+
"webpack": "^5.88.1",
|
|
66
|
+
"webpack-dev-server": "^3.11.3",
|
|
67
67
|
"yup": "^0.30.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Configuration,
|
|
3
|
-
|
|
3
|
+
WebpackPluginInstance,
|
|
4
4
|
RuleSetRule as WebpackModuleRule,
|
|
5
5
|
} from 'webpack';
|
|
6
6
|
import { Configuration as DevServerConfiguration } from 'webpack-dev-server';
|
|
@@ -118,10 +118,10 @@ export interface Config {
|
|
|
118
118
|
* @description Extend the webpack plugins
|
|
119
119
|
*/
|
|
120
120
|
extendWebpackPlugins?: (
|
|
121
|
-
plugins:
|
|
121
|
+
plugins: WebpackPluginInstance[],
|
|
122
122
|
mode: Mode,
|
|
123
123
|
command: Command
|
|
124
|
-
) =>
|
|
124
|
+
) => WebpackPluginInstance[];
|
|
125
125
|
/**
|
|
126
126
|
* @description Extend the webpack module.rules
|
|
127
127
|
*/
|
package/src/webpack-callback.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stats } from 'webpack';
|
|
2
2
|
import * as logger from './logger';
|
|
3
3
|
|
|
4
|
-
type WebpackCallback = (error?: Error, stats?: Stats) => void;
|
|
4
|
+
type WebpackCallback = (error?: Error | null, stats?: Stats) => void;
|
|
5
5
|
|
|
6
6
|
export const createWebpackCallback =
|
|
7
7
|
(exit: boolean): WebpackCallback =>
|