@tailwindcss-mangle/config 5.0.0 → 5.0.2

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/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as c12 from 'c12';
2
2
  import { FilterPattern } from '@rollup/pluginutils';
3
3
  import { IClassGeneratorOptions } from '@tailwindcss-mangle/shared';
4
+ import { PackageResolvingOptions } from 'local-pkg';
4
5
 
5
6
  interface ClassMapOutputOptions {
6
7
  enable?: boolean;
@@ -42,20 +43,25 @@ interface TailwindcssV4PatchConfig {
42
43
  css?: string;
43
44
  cssEntries?: string[];
44
45
  }
46
+ interface TailwindcssUserConfig {
47
+ version?: 2 | 3 | 4;
48
+ v2?: TailwindcssV2PatchConfig;
49
+ v3?: TailwindcssV3PatchConfig;
50
+ v4?: TailwindcssV4PatchConfig;
51
+ }
52
+ interface OutputUserConfig {
53
+ filename?: string;
54
+ loose?: boolean;
55
+ /**
56
+ * @description remove * in output json
57
+ */
58
+ removeUniversalSelector?: boolean;
59
+ }
45
60
  interface PatchUserConfig {
46
- output?: {
47
- filename?: string;
48
- loose?: boolean;
49
- /**
50
- * @description remove * in output json
51
- */
52
- removeUniversalSelector?: boolean;
53
- };
54
- tailwindcss?: {
55
- v2?: TailwindcssV2PatchConfig;
56
- v3?: TailwindcssV3PatchConfig;
57
- v4?: TailwindcssV4PatchConfig;
58
- };
61
+ packageName?: string;
62
+ output?: OutputUserConfig;
63
+ tailwindcss?: TailwindcssUserConfig;
64
+ resolve?: PackageResolvingOptions;
59
65
  }
60
66
  interface UserConfig {
61
67
  patch?: PatchUserConfig;
@@ -72,4 +78,4 @@ declare function getDefaultPatchConfig(): PatchUserConfig;
72
78
  declare function getDefaultMangleUserConfig(): MangleUserConfig;
73
79
  declare function getDefaultUserConfig(): UserConfig;
74
80
 
75
- export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type PatchUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
81
+ export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type OutputUserConfig, type PatchUserConfig, type TailwindcssUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as c12 from 'c12';
2
2
  import { FilterPattern } from '@rollup/pluginutils';
3
3
  import { IClassGeneratorOptions } from '@tailwindcss-mangle/shared';
4
+ import { PackageResolvingOptions } from 'local-pkg';
4
5
 
5
6
  interface ClassMapOutputOptions {
6
7
  enable?: boolean;
@@ -42,20 +43,25 @@ interface TailwindcssV4PatchConfig {
42
43
  css?: string;
43
44
  cssEntries?: string[];
44
45
  }
46
+ interface TailwindcssUserConfig {
47
+ version?: 2 | 3 | 4;
48
+ v2?: TailwindcssV2PatchConfig;
49
+ v3?: TailwindcssV3PatchConfig;
50
+ v4?: TailwindcssV4PatchConfig;
51
+ }
52
+ interface OutputUserConfig {
53
+ filename?: string;
54
+ loose?: boolean;
55
+ /**
56
+ * @description remove * in output json
57
+ */
58
+ removeUniversalSelector?: boolean;
59
+ }
45
60
  interface PatchUserConfig {
46
- output?: {
47
- filename?: string;
48
- loose?: boolean;
49
- /**
50
- * @description remove * in output json
51
- */
52
- removeUniversalSelector?: boolean;
53
- };
54
- tailwindcss?: {
55
- v2?: TailwindcssV2PatchConfig;
56
- v3?: TailwindcssV3PatchConfig;
57
- v4?: TailwindcssV4PatchConfig;
58
- };
61
+ packageName?: string;
62
+ output?: OutputUserConfig;
63
+ tailwindcss?: TailwindcssUserConfig;
64
+ resolve?: PackageResolvingOptions;
59
65
  }
60
66
  interface UserConfig {
61
67
  patch?: PatchUserConfig;
@@ -72,4 +78,4 @@ declare function getDefaultPatchConfig(): PatchUserConfig;
72
78
  declare function getDefaultMangleUserConfig(): MangleUserConfig;
73
79
  declare function getDefaultUserConfig(): UserConfig;
74
80
 
75
- export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type PatchUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
81
+ export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, type GlobEntry, type MangleUserConfig, type OutputUserConfig, type PatchUserConfig, type TailwindcssUserConfig, type TailwindcssV2PatchConfig, type TailwindcssV3PatchConfig, type TailwindcssV4PatchConfig, type UserConfig, defineConfig, getConfig, getDefaultMangleUserConfig, getDefaultPatchConfig, getDefaultUserConfig, initConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tailwindcss-mangle/config",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "5.0.2",
5
5
  "description": "The config and load function of tailwindcss-mangle",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",