@tailwindcss-mangle/config 5.0.5 → 5.1.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/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 { SourceEntry } from '@tailwindcss/oxide';
4
5
  import { PackageResolvingOptions } from 'local-pkg';
5
6
 
6
7
  interface ClassMapOutputOptions {
@@ -31,14 +32,8 @@ interface TailwindcssV3PatchConfig {
31
32
  cwd?: string;
32
33
  config?: string;
33
34
  }
34
- interface GlobEntry {
35
- /** Base path of the glob */
36
- base?: string;
37
- /** Glob pattern */
38
- pattern: string;
39
- }
40
35
  interface TailwindcssV4PatchConfig {
41
- sources?: GlobEntry[];
36
+ sources?: SourceEntry[];
42
37
  base?: string;
43
38
  css?: string;
44
39
  cssEntries?: string[];
@@ -78,4 +73,4 @@ declare function getDefaultPatchConfig(): PatchUserConfig;
78
73
  declare function getDefaultMangleUserConfig(): MangleUserConfig;
79
74
  declare function getDefaultUserConfig(): UserConfig;
80
75
 
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 };
76
+ export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, 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 { SourceEntry } from '@tailwindcss/oxide';
4
5
  import { PackageResolvingOptions } from 'local-pkg';
5
6
 
6
7
  interface ClassMapOutputOptions {
@@ -31,14 +32,8 @@ interface TailwindcssV3PatchConfig {
31
32
  cwd?: string;
32
33
  config?: string;
33
34
  }
34
- interface GlobEntry {
35
- /** Base path of the glob */
36
- base?: string;
37
- /** Glob pattern */
38
- pattern: string;
39
- }
40
35
  interface TailwindcssV4PatchConfig {
41
- sources?: GlobEntry[];
36
+ sources?: SourceEntry[];
42
37
  base?: string;
43
38
  css?: string;
44
39
  cssEntries?: string[];
@@ -78,4 +73,4 @@ declare function getDefaultPatchConfig(): PatchUserConfig;
78
73
  declare function getDefaultMangleUserConfig(): MangleUserConfig;
79
74
  declare function getDefaultUserConfig(): UserConfig;
80
75
 
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 };
76
+ export { CONFIG_NAME, type ClassMapOutputItem, type ClassMapOutputOptions, 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.5",
4
+ "version": "5.1.0",
5
5
  "description": "The config and load function of tailwindcss-mangle",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -49,11 +49,11 @@
49
49
  "registry": "https://registry.npmjs.org/"
50
50
  },
51
51
  "dependencies": {
52
- "c12": "^3.0.2",
52
+ "c12": "^2.0.4",
53
53
  "fs-extra": "^11.3.0",
54
54
  "is-css-request": "^1.0.1",
55
55
  "pathe": "^2.0.3",
56
- "@tailwindcss-mangle/shared": "^4.0.2"
56
+ "@tailwindcss-mangle/shared": "^4.1.0"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "tsup --watch --sourcemap",