Skip to content

Commit 305d7bf

Browse files
Full autoconfig flow for some projects (#11164)
* Initial autoconfig * further fixes * Use moduleResolution: bundler * remove directory * Update packages/wrangler/src/package-manager.ts * add tests * fix tests * Update packages/wrangler/src/deployment-bundle/run-custom-build.ts Co-authored-by: Dario Piotrowicz <[email protected]> * Update packages/wrangler/src/autoconfig/run.ts Co-authored-by: Dario Piotrowicz <[email protected]> * Create neat-worms-refuse.md * fix windows tests --------- Co-authored-by: Dario Piotrowicz <[email protected]>
1 parent b55a3c7 commit 305d7bf

File tree

74 files changed

+1199
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1199
-114
lines changed

.changeset/neat-worms-refuse.md

Lines changed: 5 additions & 0 deletions

fixtures/browser-rendering/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "CommonJS",
4+
"module": "preserve",
55
"lib": ["ES2020"],
66
"types": ["@cloudflare/workers-types"],
77
"moduleResolution": "node",

fixtures/d1-read-replication-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "CommonJS",
4+
"module": "preserve",
55
"lib": ["ES2020"],
66
"types": ["@cloudflare/workers-types"],
77
"moduleResolution": "node",

fixtures/d1-worker-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "CommonJS",
4+
"module": "preserve",
55
"lib": ["ES2020"],
66
"types": ["@cloudflare/workers-types"],
77
"moduleResolution": "node",

fixtures/durable-objects-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"esModuleInterop": true,
5-
"module": "CommonJS",
5+
"module": "preserve",
66
"lib": ["ES2020"],
77
"types": ["node"],
88
"moduleResolution": "node",

fixtures/import-npm/packages/import-example/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"esModuleInterop": true,
5-
"module": "CommonJS",
5+
"module": "preserve",
66
"lib": ["ES2020"],
77
"types": ["node"],
88
"moduleResolution": "node",

fixtures/import-wasm-example/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"esModuleInterop": true,
5-
"module": "CommonJS",
5+
"module": "preserve",
66
"lib": ["ES2020"],
77
"types": ["node"],
88
"moduleResolution": "node",

fixtures/node-app-pages/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": ["functions"],
33
"compilerOptions": {
44
"target": "ES2020",
5-
"module": "CommonJS",
5+
"module": "preserve",
66
"lib": ["ES2020"],
77
"types": ["@cloudflare/workers-types/experimental"],
88
"moduleResolution": "node",

fixtures/pages-d1-shim/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"esModuleInterop": true,
5-
"module": "CommonJS",
5+
"module": "preserve",
66
"lib": ["ES2020"],
77
"types": ["@cloudflare/workers-types"],
88
"moduleResolution": "node",

fixtures/pages-dev-proxy-with-script/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": ["index.d.ts"],
33
"compilerOptions": {
44
"target": "ES2020",
5-
"module": "CommonJS",
5+
"module": "preserve",
66
"lib": ["ES2020"],
77
"types": ["@cloudflare/workers-types"],
88
"moduleResolution": "node",

0 commit comments

Comments
 (0)