From ddba7f288b9072a487179067e6766a2e77f5c626 Mon Sep 17 00:00:00 2001 From: Narin Ratana Date: Tue, 25 Jun 2024 12:19:03 -0700 Subject: [PATCH] Add prettier formatting --- packages/tokens/package.json | 5 +++-- yarn.lock | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/tokens/package.json b/packages/tokens/package.json index c4e522bf..7b5bbe51 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -5,8 +5,8 @@ "main": "dist/js/index.js", "types": "dist/index.d.ts", "scripts": { - "tokens:build": "node ./build.js", - "prepack": "node ./build.js", + "tokens:build": "node ./build.js && prettier dist/ --write", + "prepack": "yarn run tokens:build", "publish-package": "npm publish --access public --tolerate-republish" }, "repository": { @@ -31,6 +31,7 @@ "packageManager": "yarn@3.6.1", "devDependencies": { "@department-of-veterans-affairs/css-library": "0.7.0", + "prettier": "^3.3.2", "style-dictionary": "^3.9.2" } } diff --git a/yarn.lock b/yarn.lock index 09bf9086..99872be5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2221,6 +2221,7 @@ __metadata: resolution: "@department-of-veterans-affairs/mobile-tokens@workspace:packages/tokens" dependencies: "@department-of-veterans-affairs/css-library": "npm:0.7.0" + prettier: "npm:^3.3.2" style-dictionary: "npm:^3.9.2" languageName: unknown linkType: soft @@ -16927,6 +16928,15 @@ __metadata: languageName: node linkType: hard +"prettier@npm:^3.3.2": + version: 3.3.2 + resolution: "prettier@npm:3.3.2" + bin: + prettier: bin/prettier.cjs + checksum: 39ed27d17f0238da6dd6571d63026566bd790d3d0edac57c285fbab525982060c8f1e01955fe38134ab10f0951a6076da37f015db8173c02f14bc7f0803a384c + languageName: node + linkType: hard + "pretty-bytes@npm:5.6.0": version: 5.6.0 resolution: "pretty-bytes@npm:5.6.0"