@csszyx/cli 0.10.8 → 0.10.9

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/bin.mjs CHANGED
@@ -7,10 +7,10 @@ import fs from 'fs-extra';
7
7
  import ora from 'ora';
8
8
  import pc from 'picocolors';
9
9
  import { readFile } from 'node:fs/promises';
10
- import { transformSourceCode, transform } from '@csszyx/compiler';
10
+ import { transformSourceCode, transform, sortStrings } from '@csszyx/compiler';
11
11
  import fg from 'fast-glob';
12
12
  import { parseExpression } from '@babel/parser';
13
- import { i as transformHtmlSourceSimple, t as transformSource, h as generateTypes } from './shared/cli.D8dbl_-u.mjs';
13
+ import { i as transformHtmlSourceSimple, t as transformSource, h as generateTypes } from './shared/cli.DXHBKEV9.mjs';
14
14
  import { execa } from 'execa';
15
15
  import prompts from 'prompts';
16
16
  import readline from 'node:readline';
@@ -1571,7 +1571,7 @@ async function scanCollisions(options = {}) {
1571
1571
  printSuccess("No collision-prone class names found \u2014 mangling is safe to enable.");
1572
1572
  return;
1573
1573
  }
1574
- const names = [...risky.keys()].sort();
1574
+ const names = sortStrings(risky.keys());
1575
1575
  printWarn(`${names.length} class name(s) could collide with a mangled token:`);
1576
1576
  for (const name of names) {
1577
1577
  const where = [...risky.get(name) ?? []].slice(0, 3).join(", ");
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- export { c as classNameToSzObject, e as extractScreenKeys, a as extractSpacingKeys, f as findConfigFile, b as flattenColors, g as generateAndWriteTypes, d as generateTypeDeclarations, h as generateTypes, t as migrateSource, s as scanTailwindConfig, w as writeDeclarationFile } from './shared/cli.D8dbl_-u.mjs';
1
+ export { c as classNameToSzObject, e as extractScreenKeys, a as extractSpacingKeys, f as findConfigFile, b as flattenColors, g as generateAndWriteTypes, d as generateTypeDeclarations, h as generateTypes, t as migrateSource, s as scanTailwindConfig, w as writeDeclarationFile } from './shared/cli.DXHBKEV9.mjs';
2
2
  import 'node:path';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
5
  import 'node:url';
6
+ import '@csszyx/compiler';
6
7
  import 'tailwindcss/resolveConfig.js';
7
8
  import '@babel/parser';
8
9
  import '@babel/types';
9
- import '@csszyx/compiler';
@@ -2,10 +2,10 @@ import { resolve, dirname } from 'node:path';
2
2
  import { existsSync, writeFileSync } from 'node:fs';
3
3
  import { mkdir } from 'node:fs/promises';
4
4
  import { pathToFileURL } from 'node:url';
5
+ import { sortStrings, REMOVED_BOOLEAN_SUGAR, SUGGESTION_MAP } from '@csszyx/compiler';
5
6
  import resolveConfig from 'tailwindcss/resolveConfig.js';
6
7
  import { parse } from '@babel/parser';
7
8
  import * as t from '@babel/types';
8
- import { REMOVED_BOOLEAN_SUGAR, SUGGESTION_MAP } from '@csszyx/compiler';
9
9
 
10
10
  const CONFIG_FILES = [
11
11
  "tailwind.config.ts",
@@ -69,7 +69,7 @@ function flattenColors(colors) {
69
69
  }
70
70
  }
71
71
  }
72
- return result.sort();
72
+ return sortStrings(result);
73
73
  }
74
74
  function extractSpacingKeys(spacing) {
75
75
  return Object.keys(spacing).sort((a, b) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/cli",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "description": "Command-line tools for csszyx",
5
5
  "keywords": [
6
6
  "csszyx",
@@ -49,9 +49,9 @@
49
49
  "picocolors": "^1.0.0",
50
50
  "prompts": "^2.4.2",
51
51
  "tailwindcss": "^3.4.1",
52
- "@csszyx/compiler": "0.10.8",
53
- "@csszyx/types": "0.10.8",
54
- "@csszyx/unplugin": "0.10.8"
52
+ "@csszyx/compiler": "0.10.9",
53
+ "@csszyx/unplugin": "0.10.9",
54
+ "@csszyx/types": "0.10.9"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/fs-extra": "^11.0.4",
@@ -59,7 +59,7 @@
59
59
  "@types/prompts": "^2.4.9",
60
60
  "typescript": "^6.0.3",
61
61
  "unbuild": "^3.6.1",
62
- "vitest": "^4.1.6"
62
+ "vitest": "^4.1.9"
63
63
  },
64
64
  "sideEffects": false,
65
65
  "engines": {