mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: compile cypress to commonjs to fix docker issue
This commit is contained in:
1 parent
2aa1c84e73
commit
818e4e95e4
6 files changed
+26
-14
No files matched your search
File renamed without changes.
+4
-2
@@ -3,7 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"type": "commonjs",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "yarn cypress run",
|
||||
@@ -12,9 +12,11 @@
|
||||
"dependencies": {
|
||||
"@testing-library/cypress": "^10.0.1",
|
||||
"cypress": "^13.5.1",
|
||||
"dotenv": "^16.3.1"
|
||||
"dotenv": "^16.3.1",
|
||||
"ts-node": "^10.9.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/dotenv": "^8.2.0",
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
+7
-6
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["cypress", "@testing-library/cypress"],
|
||||
"sourceMap": false,
|
||||
"inlineSourceMap": true
|
||||
"outDir": "dist",
|
||||
"target": "es5",
|
||||
"lib": ["es5", "dom"],
|
||||
"types": ["cypress", "node", "@testing-library/cypress"],
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"include": ["node_modules/cypress", "cypress/**/*.ts"],
|
||||
"exclude": ["node_modules/cypress", "cypress.config.ts", "../packages"]
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["dist"]
|
||||
}
|
||||
Reference in new issue
Block a user