Skip to content

Commit

Permalink
fix(TMC-28189): cypress need esm (#5331)
Browse files Browse the repository at this point in the history
* fix(TMC-28189): cypress need esm

* fix

* fix icons

* add changeset

---------

Co-authored-by: ybaskaran <[email protected]>
  • Loading branch information
smouillour and ybaskaran authored Jun 11, 2024
1 parent ced37a2 commit d053412
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/tame-toes-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@talend/design-tokens": patch
"@talend/icons": patch
---

Fix esm script
8 changes: 4 additions & 4 deletions .github/workflows/design-system-component-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
run: |
yarn --frozen-lock --ignore-scripts
yarn cypress install
yarn workspace @talend/assets-api run build:lib
yarn workspace @talend/utils run build:lib
yarn workspace @talend/icons run build:lib
yarn workspace @talend/design-tokens run build:lib
yarn workspace @talend/assets-api run build:lib:esm
yarn workspace @talend/utils run build:lib:esm
yarn workspace @talend/icons run build:lib:esm
yarn workspace @talend/design-tokens run build:lib:esm
- name: Cypress Component Testing
uses: cypress-io/github-action@1b70233146622b69e789ccdd4f9452adc638d25a #v6.6.1
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build:umd:dev": "talend-scripts build --umd --dev",
"build:umd:prod": "talend-scripts build --umd",
"build:lib": "talend-scripts build && yarn build:umd:dev && yarn build:umd:prod && yarn test:umd",
"build:lib:esm": "yarn build:lib && talend-scripts build --esm && cpx 'dist/*' lib/esm/dist --verbose",
"build:lib:esm": "yarn build:lib && talend-scripts build --esm && cpx 'dist/*' lib-esm/dist --verbose",
"test": "echo no test for @talend/design-tokens",
"test:cov": "echo no test for @talend/design-tokens",
"test:umd": "jest scripts/umd.test.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"build-react": "node scripts/react.js",
"build-webfont": "webpack",
"build:lib": "npm run ts:types && npm run build-ts && npm run build-react && npm run build-webfont && npm run build-umd",
"build:lib:esm": "talend-scripts build --esm && cpx 'src/**/*.{svg,json}' lib/esm/src --verbose",
"build:lib:esm": "npm run ts:types && npm run build-ts && npm run build-react && npm run build-webfont && talend-scripts build --esm && cpx 'src/**/*.{svg,json}' lib-esm/src --verbose",
"ts:types": "node scripts/typescript.js",
"test": "echo no test",
"test:cov": "echo no test",
Expand Down

0 comments on commit d053412

Please sign in to comment.