@nice2dev/design-tokens 1.3.15 → 1.3.16

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.
@@ -6,7 +6,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
6
  throw Error('Dynamic require of "' + x + '" is not supported');
7
7
  });
8
8
  var __commonJS = (cb, mod) => function __require2() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ try {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ } catch (e) {
12
+ throw mod = 0, e;
13
+ }
10
14
  };
11
15
 
12
16
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __require
3
- } from "./chunk-MCKGQKYU.js";
3
+ } from "./chunk-6OYMWYZS.js";
4
4
 
5
5
  // src/parser.ts
6
6
  import * as fs from "fs";
@@ -6,11 +6,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __esm = (fn, res) => function __init() {
10
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
+ var __esm = (fn, res, err) => function __init() {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
+ } catch (e) {
14
+ throw err = [e], e;
15
+ }
11
16
  };
12
17
  var __commonJS = (cb, mod) => function __require() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ try {
19
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
+ } catch (e) {
21
+ throw mod = 0, e;
22
+ }
14
23
  };
15
24
  var __export = (target, all) => {
16
25
  for (var name in all)
@@ -38,7 +47,7 @@ var require_package = __commonJS({
38
47
  "package.json"(exports2, module2) {
39
48
  module2.exports = {
40
49
  name: "@nice2dev/design-tokens",
41
- version: "1.3.15",
50
+ version: "1.3.16",
42
51
  description: "W3C Design Tokens for Nice2Dev UI with CLI generator",
43
52
  type: "module",
44
53
  main: "./dist/index.cjs",
@@ -78,7 +87,7 @@ var require_package = __commonJS({
78
87
  "@types/node": "^22.10.0",
79
88
  tsup: "^8.5.1",
80
89
  typescript: "^5.9.3",
81
- vitest: "^4.1.11"
90
+ vitest: "^4.1.12"
82
91
  },
83
92
  keywords: [
84
93
  "design-tokens",
package/dist/cli/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createGenerator
4
- } from "../chunk-GJ4A7ZWW.js";
4
+ } from "../chunk-PF2R7I6P.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
8
- } from "../chunk-MCKGQKYU.js";
8
+ } from "../chunk-6OYMWYZS.js";
9
9
 
10
10
  // package.json
11
11
  var require_package = __commonJS({
12
12
  "package.json"(exports, module) {
13
13
  module.exports = {
14
14
  name: "@nice2dev/design-tokens",
15
- version: "1.3.15",
15
+ version: "1.3.16",
16
16
  description: "W3C Design Tokens for Nice2Dev UI with CLI generator",
17
17
  type: "module",
18
18
  main: "./dist/index.cjs",
@@ -52,7 +52,7 @@ var require_package = __commonJS({
52
52
  "@types/node": "^22.10.0",
53
53
  tsup: "^8.5.1",
54
54
  typescript: "^5.9.3",
55
- vitest: "^4.1.11"
55
+ vitest: "^4.1.12"
56
56
  },
57
57
  keywords: [
58
58
  "design-tokens",
@@ -104,7 +104,7 @@ program.command("build").description("Build design tokens from JSON source files
104
104
  console.log("\nBuild complete!");
105
105
  if (options.watch) {
106
106
  console.log("\nWatching for changes...");
107
- const chokidar = await import("../esm-YLJOW3XL.js");
107
+ const chokidar = await import("../esm-LPVAZ4IA.js");
108
108
  const watcher = chokidar.watch(path.join(options.input, "**/*.json"), {
109
109
  ignoreInitial: true
110
110
  });
@@ -1,4 +1,4 @@
1
- import "./chunk-MCKGQKYU.js";
1
+ import "./chunk-6OYMWYZS.js";
2
2
 
3
3
  // ../../node_modules/chokidar/esm/index.js
4
4
  import { stat as statcb } from "fs";
package/dist/index.js CHANGED
@@ -54,8 +54,8 @@ import {
54
54
  transformToScss,
55
55
  transformToTailwind,
56
56
  transformToTs
57
- } from "./chunk-GJ4A7ZWW.js";
58
- import "./chunk-MCKGQKYU.js";
57
+ } from "./chunk-PF2R7I6P.js";
58
+ import "./chunk-6OYMWYZS.js";
59
59
 
60
60
  // src/presets.ts
61
61
  function generateColorScale2(baseColor) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/design-tokens",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "description": "W3C Design Tokens for Nice2Dev UI with CLI generator",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -40,7 +40,7 @@
40
40
  "@types/node": "^22.10.0",
41
41
  "tsup": "^8.5.1",
42
42
  "typescript": "^5.9.3",
43
- "vitest": "^4.1.11"
43
+ "vitest": "^4.1.12"
44
44
  },
45
45
  "keywords": [
46
46
  "design-tokens",