Skip to content

Commit

Permalink
fixed figma config
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecoomber committed Oct 9, 2024
1 parent 92759a2 commit fef5eed
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion figma.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"codeConnect": {
"include": ["outputs/code-connect/**/*.figma.ts"],
"include": ["outputs/code-connect.figma.ts"],
"exclude": ["test/**/*.figma.ts"]
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/code-connect/generate-code-connect-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const generateCodeConnectFile = async (outputDir: string, iconManifest: I
);
const codeConnectFile = await prettier.format(getNodeText(sourceFile), { parser: "typescript" });

writeFileSync(`${outputDir}/code-connect.ts`, codeConnectFile);
writeFileSync(`${outputDir}/code-connect.figma.ts`, codeConnectFile);
};

const getImportStatement = () =>
Expand Down
2 changes: 1 addition & 1 deletion test/fetch-icons/integration/generateFontFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import "./saveSvgs.test.js"; // Ensures saveSVGs is called before running these
import { assert } from "chai";
import { checkFontsExist } from "../utils.js";
import { generateFonts } from "../../../scripts/fetch-icons/generators/generateFonts.js";
import { GenerateFontResult } from "../../../scripts/fetch-icons/types/customTypes.js";
import { optimizeSVGs } from "../../../scripts/utils/optimizeSvgs.js";
import {
testIconsOutputDir,
Expand All @@ -13,6 +12,7 @@ import {
testTSOutputDir,
} from "../../data/constants.js";
import { categoryNames, generatedFontDefinitions } from "../../data/index.js";
import { GenerateFontResult } from "../../../scripts/types/customTypes.js";

describe("generateFontFiles", () => {
let result: GenerateFontResult;
Expand Down
2 changes: 1 addition & 1 deletion test/fetch-icons/integration/saveSvgs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { allImageFiles, categoryNames } from "../../data/index.js";
import { testIconsOutputDir } from "../../data/constants.js";
import { existsSync } from "fs";
import { assert } from "chai";
import { ImageManifest } from "../../../scripts/fetch-icons/types/customTypes.js";
import { checkIconsExist } from "../utils.js";
import { ImageManifest } from "../../../scripts/types/customTypes.js";

describe("saveSvgs", () => {
before(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/fetch-icons/unit/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { assert } from "chai";
import { DocumentResponse } from "../../../scripts/fetch-icons/types/figmaTypes.js";
import { getFigmaDocument, getImageFiles } from "../../../scripts/utils/api.js";
import { testFileId } from "../../data/constants.js";
import { allImageFiles, manifest } from "../../data/index.js";
import { before } from "mocha";
import { checkFigmaTokenIsSet } from "../../../scripts/utils/figmaUtils.js";
import { ZDS_ASSETS_FILE_ID } from "../../../figmaConfig.js";
import { DocumentResponse } from "../../../scripts/types/figmaTypes.js";

describe("api", () => {
before(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/fetch-icons/unit/fileUtils.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FontType } from "../../../scripts/fetch-icons/types/customTypes.js";
import { clearDirectory, createFolder, getIconFileName } from "../../../scripts/utils/fileUtils.js";
import { existsSync, rmSync, writeFileSync } from "node:fs";
import { testOutputDir } from "../../data/constants.js";
import { assert } from "chai";
import { FontType } from "../../../scripts/types/customTypes.js";

describe("fileUtils - folders", () => {
const testDir = `${testOutputDir}/test`;
Expand Down

0 comments on commit fef5eed

Please sign in to comment.