@js-toolkit/configs 3.94.3 → 3.95.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.
@@ -1,5 +1,5 @@
1
1
  declare const config: {
2
- presets: (string | [string, AnyObject] | undefined)[];
3
- plugins: (string | [string, AnyObject] | undefined)[];
2
+ presets: (string | [string, import("../types").AnyObject] | undefined)[];
3
+ plugins: (string | [string, import("../types").AnyObject] | undefined)[];
4
4
  };
5
5
  export default config;
@@ -1 +1,2 @@
1
+ import type { AnyObject } from '../types';
1
2
  export declare function getInstalledPlugin(name: string, options?: AnyObject): string | [string, AnyObject] | undefined;
@@ -1,3 +1,4 @@
1
+ import type { AnyObject } from './types';
1
2
  export declare function getWebAppConfig(root?: string): {
2
3
  root: string;
3
4
  sources: string;
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@js-toolkit/configs",
3
- "version": "3.94.3",
3
+ "version": "3.95.0",
4
4
  "description": "Preconfigured configurations",
5
5
  "author": "VZH",
6
6
  "license": "MIT",
7
- "main": "./",
8
7
  "repository": {
9
8
  "type": "git",
10
9
  "url": "https://github.com/js-toolkit/configs"
@@ -37,13 +36,13 @@
37
36
  "eslint-plugin-promise": "^7.2.1",
38
37
  "eslint-plugin-react": "^7.37.5",
39
38
  "eslint-plugin-react-hooks": "5.2.0",
40
- "globals": "^16.1.0",
39
+ "globals": "^16.2.0",
41
40
  "html-webpack-plugin": "^5.6.3",
42
41
  "prettier": "^3.5.3",
43
42
  "rimraf": "^6.0.1",
44
43
  "typescript": "^5.8.3",
45
- "typescript-eslint": "^8.32.1",
46
- "webpack": "^5.99.8",
44
+ "typescript-eslint": "^8.33.0",
45
+ "webpack": "^5.99.9",
47
46
  "webpack-dev-server": "^5.2.1",
48
47
  "webpack-node-externals": "^3.0.0"
49
48
  }
@@ -2,7 +2,7 @@
2
2
  "extends": "./common.tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "target": "ES2015",
5
- "module": "ESNext",
5
+ "module": "Preserve",
6
6
  "moduleResolution": "bundler"
7
7
  }
8
8
  }
@@ -1,5 +1,4 @@
1
1
  {
2
- "extends": "../js/common.jsconfig.json",
3
2
  "compilerOptions": {
4
3
  "target": "ESNext",
5
4
  "module": "ESNext",
@@ -0,0 +1,19 @@
1
+ declare module '*.svg' {
2
+ const path: string;
3
+ export default path;
4
+ }
5
+
6
+ declare module '*.jpg' {
7
+ const path: string;
8
+ export default path;
9
+ }
10
+
11
+ declare module '*.png' {
12
+ const path: string;
13
+ export default path;
14
+ }
15
+
16
+ declare module '*.mp3' {
17
+ const path: string;
18
+ export default path;
19
+ }
package/types/index.d.ts CHANGED
@@ -1 +1 @@
1
- type AnyObject = Record<string, any>;
1
+ export type AnyObject = Record<string, any>;
package/types/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,16 +0,0 @@
1
- declare module '*.svg' {
2
- const path: string;
3
- export default path;
4
- }
5
- declare module '*.jpg' {
6
- const path: string;
7
- export default path;
8
- }
9
- declare module '*.png' {
10
- const path: string;
11
- export default path;
12
- }
13
- declare module '*.mp3' {
14
- const path: string;
15
- export default path;
16
- }
@@ -1 +0,0 @@
1
- "use strict";