@csszyx/cli 0.8.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1565,7 +1565,7 @@ function isGradientObj(v) {
1565
1565
  return typeof v === "object" && v !== null && "gradient" in v;
1566
1566
  }
1567
1567
  function formatKey(key) {
1568
- if (/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key)) {
1568
+ if (/^[a-z_$][\w$]*$/i.test(key)) {
1569
1569
  return key;
1570
1570
  }
1571
1571
  return `'${key}'`;
@@ -3986,7 +3986,10 @@ async function migrate(options = {}) {
3986
3986
  }
3987
3987
  let processSource = source;
3988
3988
  if (resolveTodosPath && !isHtml) {
3989
- processSource = processSource.replace(/\{\/\*\s*@sz-todo:\s*(.*?)\s*\*\/\}\n?/g, "");
3989
+ processSource = processSource.replace(
3990
+ /\{\/\*\s*@sz-todo:\s*(\S(?:.*\S)?)\s*\*\/\}\n?/g,
3991
+ ""
3992
+ );
3990
3993
  }
3991
3994
  const result = isHtml ? transformHtmlSourceSimple(processSource, filePath, {
3992
3995
  braces: options.braces,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Command-line tools for csszyx",
5
5
  "keywords": [
6
6
  "csszyx",
@@ -47,7 +47,7 @@
47
47
  "ora": "^8.0.1",
48
48
  "execa": "^8.0.1",
49
49
  "fs-extra": "^11.2.0",
50
- "@csszyx/types": "0.8.0"
50
+ "@csszyx/types": "0.9.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/babel__generator": "^7.6.8",