diff --git a/formule-demo/cypress/tsconfig.json b/formule-demo/cypress/tsconfig.json index 297e597..5e7eacb 100644 --- a/formule-demo/cypress/tsconfig.json +++ b/formule-demo/cypress/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "target": "es5", - "lib": ["ES2021", "dom"], + "target": "ES2023", + "lib": ["ES2023", "dom"], "types": ["cypress"] }, "include": ["**/*.ts"] diff --git a/formule-demo/tsconfig.json b/formule-demo/tsconfig.json index c64e40f..d0707d5 100644 --- a/formule-demo/tsconfig.json +++ b/formule-demo/tsconfig.json @@ -1,15 +1,12 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2023", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2023", "DOM", "DOM.Iterable"], "module": "ESNext", - "skipLibCheck": true, // FIXME: We can remove this once we change moduleResolution to bundler /* Bundler mode */ - // FIXME: change back to bundler once a new version of cypress fixes this https://github.com/cypress-io/cypress/issues/27731 - // we would probably be able to remove "module": "./dist/react-formule.js" from formule's package.json then - "moduleResolution": "node", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, diff --git a/package.json b/package.json index d62f186..b624870 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "files": [ "dist" ], - "module": "./dist/react-formule.js", "types": "./dist/index.d.ts", "exports": { ".": { diff --git a/tsconfig.json b/tsconfig.json index 03b9cc9..4079b4e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2023", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2023", "DOM", "DOM.Iterable"], "module": "ESNext", /* Bundler mode */ @@ -23,7 +23,7 @@ "skipLibCheck": true, "allowJs": true, - "noImplicitAny": false // TODO: Remove eventually + "noImplicitAny": false // TODO: Remove eventually }, "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }]