Skip to content

Commit

Permalink
fixes for build.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Mar 10, 2024
1 parent 399ae67 commit 01a9759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/build.test.md → __tests__/build.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const StyleDictionary = require("../dist");
import StyleDictionary from "../dist-cjs/index.js";

describe('index.js', () => {
it("all formats are attached", () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest && npm run lint && tsc --noEmit",
"lint": "npx eslint . --ext .ts",
"fix": "npx eslint . --ext .ts --fix",
"clean:dist": "rm -rf dist/",
"clean:dist": "rm -rf dist/ && rm -rf dist-cjs/",
"prebuild": "npm run clean:dist",
"build": "tsc && tsc -p tsconfig-esm.json",
"preversion": "npm run build && npm run test",
Expand Down

0 comments on commit 01a9759

Please sign in to comment.