Skip to content

Commit

Permalink
task: update format file name
Browse files Browse the repository at this point in the history
  • Loading branch information
skibinska committed Jun 26, 2024
1 parent 8c49d5f commit de0bbfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { permutateThemes, registerTransforms } from '@tokens-studio/sd-transform
import { generateSemanticFiles } from "./utils/generateSemanticFiles.js";

import { formatFontFace } from "./utils/formats/formatFontFace.js";
import { foramtResponsiveCss } from "./utils/formats/formatResponsiveCss.js";
import { formatResponsiveCSS } from "./utils/formats/formatResponsiveCSS.js";
import { transformAttributeThemeable } from "./utils/transforms/transformAttributeThemeable.js";
import { transformRem } from "./utils/transforms/transformRem.js";
import { transformFont } from "./utils/transforms/transformFont.js";
Expand Down Expand Up @@ -97,7 +97,7 @@ async function run() {

sd.registerFormat({
name: 'custom/css/responsive',
format: ({ dictionary }) => foramtResponsiveCss(dictionary)
format: ({ dictionary }) => formatResponsiveCSS(dictionary)
});

sd.registerTransform({
Expand Down Expand Up @@ -134,7 +134,6 @@ async function run() {
sd.registerFilter({
name: 'custom/collectionFilter',
filter: (token) => {
console.log("token", token);
return token.filePath.includes("collection")
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const foramtResponsiveCss = (dictionary) => {
export const formatResponsiveCSS = (dictionary) => {
const deviceTokenName = "artboard";
const excludeTokens = [deviceTokenName];

Expand Down

0 comments on commit de0bbfc

Please sign in to comment.