@tokenami/config 0.0.44 → 0.0.46

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.
@@ -1,3 +1,47 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ ArbitraryValue: () => ArbitraryValue,
24
+ GridProperty: () => GridProperty,
25
+ GridValue: () => GridValue,
26
+ TokenProperty: () => TokenProperty,
27
+ TokenValue: () => TokenValue,
28
+ VariantProperty: () => VariantProperty,
29
+ arbitraryValue: () => arbitraryValue,
30
+ createConfig: () => createConfig,
31
+ defaultConfig: () => defaultConfig,
32
+ getCSSPropertiesForAlias: () => getCSSPropertiesForAlias,
33
+ getTokenPropertyName: () => getTokenPropertyName,
34
+ getTokenPropertyParts: () => getTokenPropertyParts,
35
+ getTokenPropertySplit: () => getTokenPropertySplit,
36
+ getTokenValueParts: () => getTokenValueParts,
37
+ gridProperty: () => gridProperty,
38
+ mapShorthandToLonghands: () => mapShorthandToLonghands,
39
+ tokenProperty: () => tokenProperty,
40
+ tokenValue: () => tokenValue,
41
+ variantProperty: () => variantProperty
42
+ });
43
+ module.exports = __toCommonJS(src_exports);
44
+
1
45
  // src/config.ts
2
46
  var defaultConfig = {
3
47
  include: [],
@@ -456,7 +500,8 @@ var mapShorthandToLonghands = {
456
500
  "transition-timing-function"
457
501
  ]
458
502
  };
459
- export {
503
+ // Annotate the CommonJS export names for ESM import in node:
504
+ 0 && (module.exports = {
460
505
  ArbitraryValue,
461
506
  GridProperty,
462
507
  GridValue,
@@ -476,4 +521,4 @@ export {
476
521
  tokenProperty,
477
522
  tokenValue,
478
523
  variantProperty
479
- };
524
+ });
package/dist/index.js CHANGED
@@ -1,47 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- ArbitraryValue: () => ArbitraryValue,
24
- GridProperty: () => GridProperty,
25
- GridValue: () => GridValue,
26
- TokenProperty: () => TokenProperty,
27
- TokenValue: () => TokenValue,
28
- VariantProperty: () => VariantProperty,
29
- arbitraryValue: () => arbitraryValue,
30
- createConfig: () => createConfig,
31
- defaultConfig: () => defaultConfig,
32
- getCSSPropertiesForAlias: () => getCSSPropertiesForAlias,
33
- getTokenPropertyName: () => getTokenPropertyName,
34
- getTokenPropertyParts: () => getTokenPropertyParts,
35
- getTokenPropertySplit: () => getTokenPropertySplit,
36
- getTokenValueParts: () => getTokenValueParts,
37
- gridProperty: () => gridProperty,
38
- mapShorthandToLonghands: () => mapShorthandToLonghands,
39
- tokenProperty: () => tokenProperty,
40
- tokenValue: () => tokenValue,
41
- variantProperty: () => variantProperty
42
- });
43
- module.exports = __toCommonJS(src_exports);
44
-
45
1
  // src/config.ts
46
2
  var defaultConfig = {
47
3
  include: [],
@@ -500,8 +456,7 @@ var mapShorthandToLonghands = {
500
456
  "transition-timing-function"
501
457
  ]
502
458
  };
503
- // Annotate the CommonJS export names for ESM import in node:
504
- 0 && (module.exports = {
459
+ export {
505
460
  ArbitraryValue,
506
461
  GridProperty,
507
462
  GridValue,
@@ -521,4 +476,4 @@ var mapShorthandToLonghands = {
521
476
  tokenProperty,
522
477
  tokenValue,
523
478
  variantProperty
524
- });
479
+ };
package/package.json CHANGED
@@ -1,24 +1,37 @@
1
1
  {
2
2
  "name": "@tokenami/config",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "license": "MIT",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.mjs",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "repository": "https://github.com/tokenami/tokenami",
9
10
  "sideEffects": false,
11
+ "exports": {
12
+ ".": {
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
21
+ }
22
+ },
10
23
  "files": [
11
24
  "dist"
12
25
  ],
13
- "devDependencies": {
14
- "csstype": "^3.1.2",
15
- "tsup": "^7.0.0",
16
- "typescript": "^5.1.3",
17
- "@tokenami/dev": "0.0.44"
18
- },
19
26
  "scripts": {
20
27
  "build": "tsup src/index.ts --format=esm,cjs --dts",
21
28
  "typecheck": "tsc --noEmit",
22
29
  "typecheck:ci": "pnpm typecheck"
23
- }
24
- }
30
+ },
31
+ "devDependencies": {
32
+ "csstype": "^3.1.2",
33
+ "tsup": "^7.0.0",
34
+ "typescript": "^5.1.3"
35
+ },
36
+ "gitHead": "588e725cbef31ec2b9489cae24226dccf71b8e84"
37
+ }
File without changes