Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TMC-28189): cypress need esm #5331

Merged
merged 5 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading