Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaydenow committed Mar 4, 2025
1 parent 6a6e854 commit 8595331
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cypress-ct-ui5-webc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ui5/cypress-ct-ui5-webc",
"version": "0.0.0",
"version": "0.0.1",
"description": "Example Framework Definition adapter for Cypress Component Testing",
"exports": {
"node": "./dist/definition.js",
Expand Down
5 changes: 3 additions & 2 deletions packages/cypress-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Example Framework Definition adapter for Cypress Component Testing",
"private": true,
"scripts": {
"build": "tsc",
"build": "tsc && node ./src/copy.js",
"generate": "yarn build",
"clean": "rimraf dist"
},
"exports": {
Expand All @@ -13,7 +14,7 @@
"type": "module",
"dependencies": {
"eslint-plugin-cypress": "^3.4.0",
"@ui5/cypress-ct-ui5-webc": "0.0.0",
"@ui5/cypress-ct-ui5-webc": "0.0.1",
"cypress": "^13.11.0",
"typescript": "^5.6.2",
"cypress-real-events": "^1.12.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/cypress-internal/src/copy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { copyFile } from "fs/promises";
import path from "path";

const dirname = import.meta.dirname;

await copyFile(path.join(dirname, "./eslint.cjs"), path.join(dirname, "../dist/eslint.cjs"))

console.log("eslint.cjs copied successfully")
1 change: 0 additions & 1 deletion packages/cypress-internal/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"outDir": "dist",
"allowJs": true,
"rootDir": "src",
"skipLibCheck": true,
"target": "ES6",
Expand Down

0 comments on commit 8595331

Please sign in to comment.