tailwindcss 3.0.21 → 3.0.24

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +45 -2
  2. package/lib/cli-peer-dependencies.js +3 -3
  3. package/lib/cli.js +183 -161
  4. package/lib/constants.js +8 -8
  5. package/lib/corePlugins.js +1597 -1518
  6. package/lib/featureFlags.js +9 -9
  7. package/lib/index.js +19 -6
  8. package/lib/lib/cacheInvalidation.js +69 -0
  9. package/lib/lib/collapseAdjacentRules.js +26 -13
  10. package/lib/lib/collapseDuplicateDeclarations.js +1 -1
  11. package/lib/lib/defaultExtractor.js +8 -6
  12. package/lib/lib/detectNesting.js +9 -9
  13. package/lib/lib/evaluateTailwindFunctions.js +16 -16
  14. package/lib/lib/expandApplyAtRules.js +180 -27
  15. package/lib/lib/expandTailwindAtRules.js +132 -122
  16. package/lib/lib/generateRules.js +117 -72
  17. package/lib/lib/getModuleDependencies.js +14 -14
  18. package/lib/lib/normalizeTailwindDirectives.js +35 -35
  19. package/lib/lib/partitionApplyAtRules.js +7 -7
  20. package/lib/lib/resolveDefaultsAtRules.js +81 -77
  21. package/lib/lib/setupContextUtils.js +83 -98
  22. package/lib/lib/setupTrackingContext.js +57 -57
  23. package/lib/lib/sharedState.js +11 -7
  24. package/lib/lib/substituteScreenAtRules.js +2 -2
  25. package/lib/postcss-plugins/nesting/README.md +2 -2
  26. package/lib/postcss-plugins/nesting/index.js +1 -1
  27. package/lib/postcss-plugins/nesting/plugin.js +41 -9
  28. package/lib/processTailwindFeatures.js +7 -7
  29. package/lib/public/colors.js +241 -241
  30. package/lib/public/resolve-config.js +5 -5
  31. package/lib/util/buildMediaQuery.js +2 -2
  32. package/lib/util/cloneDeep.js +1 -1
  33. package/lib/util/cloneNodes.js +12 -1
  34. package/lib/util/color.js +21 -20
  35. package/lib/util/createUtilityPlugin.js +6 -6
  36. package/lib/util/dataTypes.js +77 -75
  37. package/lib/util/escapeClassName.js +5 -5
  38. package/lib/util/escapeCommas.js +1 -1
  39. package/lib/util/flattenColorPalette.js +2 -2
  40. package/lib/util/formatVariantSelector.js +19 -19
  41. package/lib/util/getAllConfigs.js +5 -5
  42. package/lib/util/hashConfig.js +5 -5
  43. package/lib/util/isKeyframeRule.js +1 -1
  44. package/lib/util/isPlainObject.js +1 -1
  45. package/lib/util/isValidArbitraryValue.js +27 -27
  46. package/lib/util/log.js +8 -8
  47. package/lib/util/nameClass.js +7 -7
  48. package/lib/util/negateValue.js +4 -4
  49. package/lib/util/normalizeConfig.js +39 -39
  50. package/lib/util/normalizeScreens.js +4 -4
  51. package/lib/util/parseAnimationValue.js +56 -56
  52. package/lib/util/parseBoxShadowValue.js +60 -20
  53. package/lib/util/parseDependency.js +32 -32
  54. package/lib/util/parseObjectStyles.js +6 -6
  55. package/lib/util/pluginUtils.js +9 -9
  56. package/lib/util/prefixSelector.js +1 -1
  57. package/lib/util/resolveConfig.js +28 -28
  58. package/lib/util/resolveConfigPath.js +16 -16
  59. package/lib/util/responsive.js +6 -6
  60. package/lib/util/toColorValue.js +1 -1
  61. package/lib/util/toPath.js +2 -2
  62. package/lib/util/transformThemeValue.js +27 -27
  63. package/lib/util/withAlphaVariable.js +19 -19
  64. package/package.json +26 -25
  65. package/peers/index.js +4803 -4857
  66. package/scripts/generate-types.js +52 -0
  67. package/src/cli.js +41 -11
  68. package/src/corePlugins.js +104 -9
  69. package/src/featureFlags.js +2 -2
  70. package/src/index.js +17 -1
  71. package/src/lib/cacheInvalidation.js +52 -0
  72. package/src/lib/collapseAdjacentRules.js +16 -1
  73. package/src/lib/defaultExtractor.js +6 -4
  74. package/src/lib/expandApplyAtRules.js +179 -6
  75. package/src/lib/expandTailwindAtRules.js +26 -6
  76. package/src/lib/generateRules.js +73 -46
  77. package/src/lib/resolveDefaultsAtRules.js +6 -2
  78. package/src/lib/setupContextUtils.js +39 -48
  79. package/src/lib/setupTrackingContext.js +3 -3
  80. package/src/lib/sharedState.js +2 -0
  81. package/src/postcss-plugins/nesting/README.md +2 -2
  82. package/src/postcss-plugins/nesting/plugin.js +36 -0
  83. package/src/util/cloneNodes.js +14 -1
  84. package/src/util/color.js +7 -5
  85. package/src/util/dataTypes.js +3 -1
  86. package/src/util/log.js +7 -7
  87. package/src/util/parseBoxShadowValue.js +50 -2
  88. package/src/util/resolveConfig.js +32 -0
  89. package/stubs/defaultConfig.stub.js +5 -0
@@ -6,11 +6,6 @@ exports.default = parseObjectStyles;
6
6
  var _postcss = _interopRequireDefault(require("postcss"));
7
7
  var _postcssNested = _interopRequireDefault(require("postcss-nested"));
8
8
  var _postcssJs = _interopRequireDefault(require("postcss-js"));
9
- function _interopRequireDefault(obj) {
10
- return obj && obj.__esModule ? obj : {
11
- default: obj
12
- };
13
- }
14
9
  function parseObjectStyles(styles) {
15
10
  if (!Array.isArray(styles)) {
16
11
  return parseObjectStyles([
@@ -21,7 +16,7 @@ function parseObjectStyles(styles) {
21
16
  return (0, _postcss).default([
22
17
  (0, _postcssNested).default({
23
18
  bubble: [
24
- 'screen'
19
+ "screen"
25
20
  ]
26
21
  }),
27
22
  ]).process(style, {
@@ -29,3 +24,8 @@ function parseObjectStyles(styles) {
29
24
  }).root.nodes;
30
25
  });
31
26
  }
27
+ function _interopRequireDefault(obj) {
28
+ return obj && obj.__esModule ? obj : {
29
+ default: obj
30
+ };
31
+ }
@@ -60,16 +60,16 @@ function asValue(modifier, options = {}, { validate =()=>true
60
60
  if (value !== undefined) {
61
61
  return value;
62
62
  }
63
- if (options.supportsNegativeValues && modifier.startsWith('-')) {
63
+ if (options.supportsNegativeValues && modifier.startsWith("-")) {
64
64
  return asNegativeValue(modifier.slice(1), options.values, validate);
65
65
  }
66
66
  return resolveArbitraryValue(modifier, validate);
67
67
  }
68
68
  function isArbitraryValue(input) {
69
- return input.startsWith('[') && input.endsWith(']');
69
+ return input.startsWith("[") && input.endsWith("]");
70
70
  }
71
71
  function splitAlpha(modifier) {
72
- let slashIdx = modifier.lastIndexOf('/');
72
+ let slashIdx = modifier.lastIndexOf("/");
73
73
  if (slashIdx === -1 || slashIdx === modifier.length - 1) {
74
74
  return [
75
75
  modifier
@@ -126,12 +126,12 @@ let typeMap = {
126
126
  percentage: guess(_dataTypes.percentage),
127
127
  position: guess(_dataTypes.position),
128
128
  lookup: asLookupValue,
129
- 'generic-name': guess(_dataTypes.genericName),
130
- 'family-name': guess(_dataTypes.familyName),
129
+ "generic-name": guess(_dataTypes.genericName),
130
+ "family-name": guess(_dataTypes.familyName),
131
131
  number: guess(_dataTypes.number),
132
- 'line-width': guess(_dataTypes.lineWidth),
133
- 'absolute-size': guess(_dataTypes.absoluteSize),
134
- 'relative-size': guess(_dataTypes.relativeSize),
132
+ "line-width": guess(_dataTypes.lineWidth),
133
+ "absolute-size": guess(_dataTypes.absoluteSize),
134
+ "relative-size": guess(_dataTypes.relativeSize),
135
135
  shadow: guess(_dataTypes.shadow)
136
136
  };
137
137
  let supportedTypes = Object.keys(typeMap);
@@ -149,7 +149,7 @@ function splitAtFirst(input, delim) {
149
149
  function coerceValue(types, modifier, options, tailwindConfig) {
150
150
  if (isArbitraryValue(modifier)) {
151
151
  let arbitraryValue = modifier.slice(1, -1);
152
- let [explicitType, value] = splitAtFirst(arbitraryValue, ':');
152
+ let [explicitType, value] = splitAtFirst(arbitraryValue, ":");
153
153
  // It could be that this resolves to `url(https` which is not a valid
154
154
  // identifier. We currently only support "simple" words with dashes or
155
155
  // underscores. E.g.: family-name
@@ -13,7 +13,7 @@ function _default(prefix, selector, prependNegative = false) {
13
13
  return (0, _postcssSelectorParser).default((selectors)=>{
14
14
  selectors.walkClasses((classSelector)=>{
15
15
  let baseClass = classSelector.value;
16
- let shouldPlaceNegativeBeforePrefix = prependNegative && baseClass.startsWith('-');
16
+ let shouldPlaceNegativeBeforePrefix = prependNegative && baseClass.startsWith("-");
17
17
  classSelector.value = shouldPlaceNegativeBeforePrefix ? `-${prefix}${baseClass.slice(1)}` : `${prefix}${baseClass}`;
18
18
  });
19
19
  }).processSync(selector);
@@ -13,16 +13,38 @@ var _toPath = require("./toPath");
13
13
  var _normalizeConfig = require("./normalizeConfig");
14
14
  var _isPlainObject = _interopRequireDefault(require("./isPlainObject"));
15
15
  var _cloneDeep = require("./cloneDeep");
16
+ function resolveConfig(configs) {
17
+ let allConfigs = [
18
+ ...extractPluginConfigs(configs),
19
+ {
20
+ prefix: "",
21
+ important: false,
22
+ separator: ":",
23
+ variantOrder: _defaultConfigStub.default.variantOrder
24
+ },
25
+ ];
26
+ var ref, ref1;
27
+ return (0, _normalizeConfig).normalizeConfig((0, _defaults).defaults({
28
+ theme: resolveFunctionKeys(mergeExtensions(mergeThemes(allConfigs.map((t)=>{
29
+ return (ref = t === null || t === void 0 ? void 0 : t.theme) !== null && ref !== void 0 ? ref : {};
30
+ })))),
31
+ corePlugins: resolveCorePlugins(allConfigs.map((c)=>c.corePlugins
32
+ )),
33
+ plugins: resolvePluginLists(configs.map((c)=>{
34
+ return (ref1 = c === null || c === void 0 ? void 0 : c.plugins) !== null && ref1 !== void 0 ? ref1 : [];
35
+ }))
36
+ }, ...allConfigs));
37
+ }
16
38
  function _interopRequireDefault(obj) {
17
39
  return obj && obj.__esModule ? obj : {
18
40
  default: obj
19
41
  };
20
42
  }
21
43
  function isFunction(input) {
22
- return typeof input === 'function';
44
+ return typeof input === "function";
23
45
  }
24
46
  function isObject(input) {
25
- return typeof input === 'object' && input !== null;
47
+ return typeof input === "object" && input !== null;
26
48
  }
27
49
  function mergeWith(target, ...sources) {
28
50
  let customizer = sources.pop();
@@ -46,7 +68,7 @@ const configUtils = {
46
68
  colors: _colors.default,
47
69
  negative (scale) {
48
70
  // TODO: Log that this function isn't really needed anymore?
49
- return Object.keys(scale).filter((key)=>scale[key] !== '0'
71
+ return Object.keys(scale).filter((key)=>scale[key] !== "0"
50
72
  ).reduce((negativeScale, key)=>{
51
73
  let negativeValue = (0, _negateValue).default(scale[key]);
52
74
  if (negativeValue !== undefined) {
@@ -56,7 +78,7 @@ const configUtils = {
56
78
  }, {});
57
79
  },
58
80
  breakpoints (screens) {
59
- return Object.keys(screens).filter((key)=>typeof screens[key] === 'string'
81
+ return Object.keys(screens).filter((key)=>typeof screens[key] === "string"
60
82
  ).reduce((breakpoints, key)=>({
61
83
  ...breakpoints,
62
84
  [`screen-${key}`]: screens[key]
@@ -165,8 +187,8 @@ function extractPluginConfigs(configs) {
165
187
  ...allConfigs,
166
188
  config
167
189
  ];
168
- var ref1;
169
- const plugins = (ref1 = config === null || config === void 0 ? void 0 : config.plugins) !== null && ref1 !== void 0 ? ref1 : [];
190
+ var ref2;
191
+ const plugins = (ref2 = config === null || config === void 0 ? void 0 : config.plugins) !== null && ref2 !== void 0 ? ref2 : [];
170
192
  if (plugins.length === 0) {
171
193
  return;
172
194
  }
@@ -209,25 +231,3 @@ function resolvePluginLists(pluginLists) {
209
231
  }, []);
210
232
  return result;
211
233
  }
212
- function resolveConfig(configs) {
213
- let allConfigs = [
214
- ...extractPluginConfigs(configs),
215
- {
216
- prefix: '',
217
- important: false,
218
- separator: ':',
219
- variantOrder: _defaultConfigStub.default.variantOrder
220
- },
221
- ];
222
- var ref, ref2;
223
- return (0, _normalizeConfig).normalizeConfig((0, _defaults).defaults({
224
- theme: resolveFunctionKeys(mergeExtensions(mergeThemes(allConfigs.map((t)=>{
225
- return (ref = t === null || t === void 0 ? void 0 : t.theme) !== null && ref !== void 0 ? ref : {};
226
- })))),
227
- corePlugins: resolveCorePlugins(allConfigs.map((c)=>c.corePlugins
228
- )),
229
- plugins: resolvePluginLists(configs.map((c)=>{
230
- return (ref2 = c === null || c === void 0 ? void 0 : c.plugins) !== null && ref2 !== void 0 ? ref2 : [];
231
- }))
232
- }, ...allConfigs));
233
- }
@@ -5,20 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  exports.default = resolveConfigPath;
6
6
  var _fs = _interopRequireDefault(require("fs"));
7
7
  var _path = _interopRequireDefault(require("path"));
8
- function _interopRequireDefault(obj) {
9
- return obj && obj.__esModule ? obj : {
10
- default: obj
11
- };
12
- }
13
- function isObject(value) {
14
- return typeof value === 'object' && value !== null;
15
- }
16
- function isEmpty(obj) {
17
- return Object.keys(obj).length === 0;
18
- }
19
- function isString(value) {
20
- return typeof value === 'string' || value instanceof String;
21
- }
22
8
  function resolveConfigPath(pathOrConfig) {
23
9
  // require('tailwindcss')({ theme: ..., variants: ... })
24
10
  if (isObject(pathOrConfig) && pathOrConfig.config === undefined && !isEmpty(pathOrConfig)) {
@@ -38,8 +24,8 @@ function resolveConfigPath(pathOrConfig) {
38
24
  }
39
25
  // require('tailwindcss')
40
26
  for (const configFile of [
41
- './tailwind.config.js',
42
- './tailwind.config.cjs'
27
+ "./tailwind.config.js",
28
+ "./tailwind.config.cjs"
43
29
  ]){
44
30
  try {
45
31
  const configPath = _path.default.resolve(configFile);
@@ -49,3 +35,17 @@ function resolveConfigPath(pathOrConfig) {
49
35
  }
50
36
  return null;
51
37
  }
38
+ function _interopRequireDefault(obj) {
39
+ return obj && obj.__esModule ? obj : {
40
+ default: obj
41
+ };
42
+ }
43
+ function isObject(value) {
44
+ return typeof value === "object" && value !== null;
45
+ }
46
+ function isEmpty(obj) {
47
+ return Object.keys(obj).length === 0;
48
+ }
49
+ function isString(value) {
50
+ return typeof value === "string" || value instanceof String;
51
+ }
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  exports.default = responsive;
6
6
  var _postcss = _interopRequireDefault(require("postcss"));
7
7
  var _cloneNodes = _interopRequireDefault(require("./cloneNodes"));
8
- function _interopRequireDefault(obj) {
9
- return obj && obj.__esModule ? obj : {
10
- default: obj
11
- };
12
- }
13
8
  function responsive(rules) {
14
9
  return _postcss.default.atRule({
15
- name: 'responsive'
10
+ name: "responsive"
16
11
  }).append((0, _cloneNodes).default(Array.isArray(rules) ? rules : [
17
12
  rules
18
13
  ]));
19
14
  }
15
+ function _interopRequireDefault(obj) {
16
+ return obj && obj.__esModule ? obj : {
17
+ default: obj
18
+ };
19
+ }
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  exports.default = toColorValue;
6
6
  function toColorValue(maybeFunction) {
7
- return typeof maybeFunction === 'function' ? maybeFunction({}) : maybeFunction;
7
+ return typeof maybeFunction === "function" ? maybeFunction({}) : maybeFunction;
8
8
  }
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  exports.toPath = toPath;
6
6
  function toPath(path) {
7
7
  if (Array.isArray(path)) return path;
8
- let openBrackets = path.split('[').length - 1;
9
- let closedBrackets = path.split(']').length - 1;
8
+ let openBrackets = path.split("[").length - 1;
9
+ let closedBrackets = path.split("]").length - 1;
10
10
  if (openBrackets !== closedBrackets) {
11
11
  throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`);
12
12
  }
@@ -4,56 +4,56 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  exports.default = transformThemeValue;
6
6
  var _postcss = _interopRequireDefault(require("postcss"));
7
- function _interopRequireDefault(obj) {
8
- return obj && obj.__esModule ? obj : {
9
- default: obj
10
- };
11
- }
12
7
  function transformThemeValue(themeSection) {
13
8
  if ([
14
- 'fontSize',
15
- 'outline'
9
+ "fontSize",
10
+ "outline"
16
11
  ].includes(themeSection)) {
17
12
  return (value)=>{
18
- if (typeof value === 'function') value = value({});
13
+ if (typeof value === "function") value = value({});
19
14
  if (Array.isArray(value)) value = value[0];
20
15
  return value;
21
16
  };
22
17
  }
23
18
  if ([
24
- 'fontFamily',
25
- 'boxShadow',
26
- 'transitionProperty',
27
- 'transitionDuration',
28
- 'transitionDelay',
29
- 'transitionTimingFunction',
30
- 'backgroundImage',
31
- 'backgroundSize',
32
- 'backgroundColor',
33
- 'cursor',
34
- 'animation',
19
+ "fontFamily",
20
+ "boxShadow",
21
+ "transitionProperty",
22
+ "transitionDuration",
23
+ "transitionDelay",
24
+ "transitionTimingFunction",
25
+ "backgroundImage",
26
+ "backgroundSize",
27
+ "backgroundColor",
28
+ "cursor",
29
+ "animation",
35
30
  ].includes(themeSection)) {
36
31
  return (value)=>{
37
- if (typeof value === 'function') value = value({});
38
- if (Array.isArray(value)) value = value.join(', ');
32
+ if (typeof value === "function") value = value({});
33
+ if (Array.isArray(value)) value = value.join(", ");
39
34
  return value;
40
35
  };
41
36
  }
42
37
  // For backwards compatibility reasons, before we switched to underscores
43
38
  // instead of commas for arbitrary values.
44
39
  if ([
45
- 'gridTemplateColumns',
46
- 'gridTemplateRows',
47
- 'objectPosition'
40
+ "gridTemplateColumns",
41
+ "gridTemplateRows",
42
+ "objectPosition"
48
43
  ].includes(themeSection)) {
49
44
  return (value)=>{
50
- if (typeof value === 'function') value = value({});
51
- if (typeof value === 'string') value = _postcss.default.list.comma(value).join(' ');
45
+ if (typeof value === "function") value = value({});
46
+ if (typeof value === "string") value = _postcss.default.list.comma(value).join(" ");
52
47
  return value;
53
48
  };
54
49
  }
55
50
  return (value)=>{
56
- if (typeof value === 'function') value = value({});
51
+ if (typeof value === "function") value = value({});
57
52
  return value;
58
53
  };
59
54
  }
55
+ function _interopRequireDefault(obj) {
56
+ return obj && obj.__esModule ? obj : {
57
+ default: obj
58
+ };
59
+ }
@@ -2,29 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- exports.withAlphaValue = withAlphaValue;
6
5
  exports.default = withAlphaVariable;
6
+ exports.withAlphaValue = withAlphaValue;
7
7
  var _color = require("./color");
8
- function withAlphaValue(color, alphaValue, defaultValue) {
9
- if (typeof color === 'function') {
10
- return color({
11
- opacityValue: alphaValue
12
- });
13
- }
14
- let parsed = (0, _color).parseColor(color);
15
- if (parsed === null) {
16
- return defaultValue;
17
- }
18
- return (0, _color).formatColor({
19
- ...parsed,
20
- alpha: alphaValue
21
- });
22
- }
23
8
  function withAlphaVariable({ color , property , variable }) {
24
9
  let properties = [].concat(property);
25
- if (typeof color === 'function') {
10
+ if (typeof color === "function") {
26
11
  return {
27
- [variable]: '1',
12
+ [variable]: "1",
28
13
  ...Object.fromEntries(properties.map((p)=>{
29
14
  return [
30
15
  p,
@@ -53,7 +38,7 @@ function withAlphaVariable({ color , property , variable }) {
53
38
  ));
54
39
  }
55
40
  return {
56
- [variable]: '1',
41
+ [variable]: "1",
57
42
  ...Object.fromEntries(properties.map((p)=>{
58
43
  return [
59
44
  p,
@@ -65,3 +50,18 @@ function withAlphaVariable({ color , property , variable }) {
65
50
  }))
66
51
  };
67
52
  }
53
+ function withAlphaValue(color, alphaValue, defaultValue) {
54
+ if (typeof color === "function") {
55
+ return color({
56
+ opacityValue: alphaValue
57
+ });
58
+ }
59
+ let parsed = (0, _color).parseColor(color);
60
+ if (parsed === null) {
61
+ return defaultValue;
62
+ }
63
+ return (0, _color).formatColor({
64
+ ...parsed,
65
+ alpha: alphaValue
66
+ });
67
+ }
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "3.0.21",
3
+ "version": "3.0.24",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
- "style": "dist/tailwind.css",
8
7
  "repository": "https://github.com/tailwindlabs/tailwindcss.git",
9
8
  "bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
10
9
  "homepage": "https://tailwindcss.com",
@@ -13,18 +12,20 @@
13
12
  "tailwindcss": "lib/cli.js"
14
13
  },
15
14
  "scripts": {
16
- "preswcify": "npm run generate:plugin-list && rimraf lib",
15
+ "preswcify": "npm run generate && rimraf lib",
17
16
  "swcify": "swc src --out-dir lib --copy-files",
18
17
  "postswcify": "esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js",
19
18
  "rebuild-fixtures": "npm run swcify && node -r @swc/register scripts/rebuildFixtures.js",
20
19
  "prepublishOnly": "npm install --force && npm run swcify",
21
20
  "style": "eslint .",
22
- "pretest": "npm run generate:plugin-list",
21
+ "pretest": "npm run generate",
23
22
  "test": "jest",
24
23
  "test:integrations": "npm run test --prefix ./integrations",
25
24
  "install:integrations": "node scripts/install-integrations.js",
26
25
  "posttest": "npm run style",
27
- "generate:plugin-list": "node -r @swc/register scripts/create-plugin-list.js"
26
+ "generate:plugin-list": "node -r @swc/register scripts/create-plugin-list.js",
27
+ "generate:types": "node -r @swc/register scripts/generate-types.js",
28
+ "generate": "npm run generate:plugin-list"
28
29
  },
29
30
  "files": [
30
31
  "src/*",
@@ -38,45 +39,45 @@
38
39
  "*.js"
39
40
  ],
40
41
  "devDependencies": {
41
- "@swc/cli": "^0.1.55",
42
- "@swc/core": "^1.2.127",
43
- "@swc/jest": "^0.2.17",
42
+ "@swc/cli": "^0.1.56",
43
+ "@swc/core": "^1.2.160",
44
+ "@swc/jest": "^0.2.20",
44
45
  "@swc/register": "^0.1.10",
45
- "autoprefixer": "^10.4.2",
46
- "cssnano": "^5.0.16",
47
- "esbuild": "^0.14.10",
48
- "eslint": "^8.8.0",
49
- "eslint-config-prettier": "^8.3.0",
46
+ "autoprefixer": "^10.4.4",
47
+ "cssnano": "^5.1.7",
48
+ "esbuild": "^0.14.25",
49
+ "eslint": "^8.11.0",
50
+ "eslint-config-prettier": "^8.5.0",
50
51
  "eslint-plugin-prettier": "^4.0.0",
51
- "jest": "^27.4.7",
52
- "jest-diff": "^27.4.6",
53
- "postcss": "^8.4.6",
54
- "prettier": "^2.5.1",
55
- "prettier-plugin-tailwindcss": "^0.1.7",
56
- "rimraf": "^3.0.0"
52
+ "jest": "^27.5.1",
53
+ "jest-diff": "^27.5.1",
54
+ "prettier": "^2.6.0",
55
+ "prettier-plugin-tailwindcss": "^0.1.8",
56
+ "rimraf": "^3.0.0",
57
+ "source-map-js": "^1.0.2"
57
58
  },
58
59
  "peerDependencies": {
59
- "autoprefixer": "^10.0.2",
60
60
  "postcss": "^8.0.9"
61
61
  },
62
62
  "dependencies": {
63
63
  "arg": "^5.0.1",
64
- "chalk": "^4.1.2",
65
64
  "chokidar": "^3.5.3",
66
65
  "color-name": "^1.1.4",
67
- "cosmiconfig": "^7.0.1",
68
66
  "detective": "^5.2.0",
69
67
  "didyoumean": "^1.2.2",
70
68
  "dlv": "^1.1.3",
71
69
  "fast-glob": "^3.2.11",
72
70
  "glob-parent": "^6.0.2",
73
71
  "is-glob": "^4.0.3",
72
+ "lilconfig": "^2.0.5",
74
73
  "normalize-path": "^3.0.0",
75
- "object-hash": "^2.2.0",
74
+ "object-hash": "^3.0.0",
75
+ "picocolors": "^1.0.0",
76
+ "postcss": "^8.4.12",
76
77
  "postcss-js": "^4.0.0",
77
- "postcss-load-config": "^3.1.0",
78
+ "postcss-load-config": "^3.1.4",
78
79
  "postcss-nested": "5.0.6",
79
- "postcss-selector-parser": "^6.0.9",
80
+ "postcss-selector-parser": "^6.0.10",
80
81
  "postcss-value-parser": "^4.2.0",
81
82
  "quick-lru": "^5.1.1",
82
83
  "resolve": "^1.22.0"