@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 CHANGED
@@ -1 +1 @@
1
- 16.14.2
1
+ 16.17.0
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Configuration, Plugin as WebpackPlugin, RuleSetRule as WebpackModuleRule } from 'webpack';
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: WebpackPlugin[], mode: Mode, command: Command) => WebpackPlugin[];
104
+ extendWebpackPlugins?: (plugins: WebpackPluginInstance[], mode: Mode, command: Command) => WebpackPluginInstance[];
105
105
  /**
106
106
  * @description Extend the webpack module.rules
107
107
  */
@@ -1,4 +1,4 @@
1
1
  import { Stats } from 'webpack';
2
- type WebpackCallback = (error?: Error, stats?: Stats) => void;
2
+ type WebpackCallback = (error?: Error | null, stats?: Stats) => void;
3
3
  export declare const createWebpackCallback: (exit: boolean) => WebpackCallback;
4
4
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakesidsmith/tsb",
3
- "version": "1.0.1",
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": "^8.2.1",
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": "^1.0.2",
58
- "html-webpack-plugin": "^4.5.0",
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": "^8.0.11",
63
- "tsconfig-paths-webpack-plugin": "^3.3.0",
62
+ "ts-loader": "^9.4.4",
63
+ "tsconfig-paths-webpack-plugin": "^4.0.1",
64
64
  "typescript": "^5.0.2",
65
- "webpack": "^4.44.2",
66
- "webpack-dev-server": "^3.11.0",
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
- Plugin as WebpackPlugin,
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: WebpackPlugin[],
121
+ plugins: WebpackPluginInstance[],
122
122
  mode: Mode,
123
123
  command: Command
124
- ) => WebpackPlugin[];
124
+ ) => WebpackPluginInstance[];
125
125
  /**
126
126
  * @description Extend the webpack module.rules
127
127
  */
@@ -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 =>