diff --git a/packages/token-cli/package.json b/packages/token-cli/package.json index dbef06512..628cbadb6 100644 --- a/packages/token-cli/package.json +++ b/packages/token-cli/package.json @@ -7,14 +7,15 @@ "clean": "rimraf dist .tsbuildinfo" }, "devDependencies": { + "@types/fs-extra": "^11.0.4", "@types/yargs": "^17.0.32", - "fs-extra": "^11.2.0", "style-dictionary": "^3.9.2", "tsup": "^8.0.2", "typescript": "^5.4.2" }, "dependencies": { "axios": "^1.6.7", + "fs-extra": "^11.2.0", "yargs": "^17.7.2" } } diff --git a/packages/token-cli/pixiv-dark.config.js b/packages/token-cli/pixiv-dark.config.js index c6282039c..947ffa3cb 100644 --- a/packages/token-cli/pixiv-dark.config.js +++ b/packages/token-cli/pixiv-dark.config.js @@ -1,6 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -/* eslint-disable @typescript-eslint/no-unsafe-return */ +/** @type { import('style-dictionary') } */ module.exports = { source: ['tokens/base.json', 'tokens/pixiv-light.json'], transform: { diff --git a/packages/token-cli/pixiv-light.config.js b/packages/token-cli/pixiv-light.config.js index 082d5b812..abdf0806f 100644 --- a/packages/token-cli/pixiv-light.config.js +++ b/packages/token-cli/pixiv-light.config.js @@ -1,6 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -/* eslint-disable @typescript-eslint/no-unsafe-return */ +/** @type { import('style-dictionary') } */ module.exports = { source: ['tokens/base.json', 'tokens/pixiv-light.json'], transform: { diff --git a/yarn.lock b/yarn.lock index 29a85ca32..955c955e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2777,6 +2777,7 @@ __metadata: version: 0.0.0-use.local resolution: "@charcoal-ui/token-cli@workspace:packages/token-cli" dependencies: + "@types/fs-extra": ^11.0.4 "@types/yargs": ^17.0.32 axios: ^1.6.7 fs-extra: ^11.2.0 @@ -8411,6 +8412,16 @@ __metadata: languageName: node linkType: hard +"@types/fs-extra@npm:^11.0.4": + version: 11.0.4 + resolution: "@types/fs-extra@npm:11.0.4" + dependencies: + "@types/jsonfile": "*" + "@types/node": "*" + checksum: 242cb84157631f057f76495c8220707541882c00a00195b603d937fb55e471afecebcb089bab50233ed3a59c69fd68bf65c1f69dd7fafe2347e139cc15b9b0e5 + languageName: node + linkType: hard + "@types/fs-extra@npm:^9.0.13": version: 9.0.13 resolution: "@types/fs-extra@npm:9.0.13" @@ -8595,6 +8606,15 @@ __metadata: languageName: node linkType: hard +"@types/jsonfile@npm:*": + version: 6.1.4 + resolution: "@types/jsonfile@npm:6.1.4" + dependencies: + "@types/node": "*" + checksum: 309fda20eb5f1cf68f2df28931afdf189c5e7e6bec64ac783ce737bb98908d57f6f58757ad5da9be37b815645a6f914e2d4f3ac66c574b8fe1ba6616284d0e97 + languageName: node + linkType: hard + "@types/keyv@npm:*": version: 3.1.2 resolution: "@types/keyv@npm:3.1.2"