From 2795302ee78dc4d958f23e2dab8917b701c86612 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Mon, 6 Nov 2023 13:44:47 -0800 Subject: [PATCH] Fix: Default must be last --- packages/compiler/package.json | 16 ++++++++-------- packages/html-program-viewer/package.json | 8 ++++---- packages/http/package.json | 8 ++++---- packages/library-linter/package.json | 8 ++++---- packages/lint/package.json | 8 ++++---- packages/openapi/package.json | 8 ++++---- packages/openapi3/package.json | 8 ++++---- packages/playground/package.json | 20 ++++++++++---------- packages/rest/package.json | 8 ++++---- packages/samples/package.json | 4 ++-- packages/tspd/package.json | 12 ++++++------ packages/versioning/package.json | 8 ++++---- 12 files changed, 58 insertions(+), 58 deletions(-) diff --git a/packages/compiler/package.json b/packages/compiler/package.json index eda7533faa..26c6d0cc12 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -22,20 +22,20 @@ "tspMain": "lib/main.tsp", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" }, "./module-resolver": { - "default": "./dist/src/core/module-resolver.js", - "types": "./dist/src/core/module-resolver.d.ts" + "types": "./dist/src/core/module-resolver.d.ts", + "default": "./dist/src/core/module-resolver.js" }, "./emitter-framework": { - "default": "./dist/src/emitter-framework/index.js", - "types": "./dist/src/emitter-framework/index.d.ts" + "types": "./dist/src/emitter-framework/index.d.ts", + "default": "./dist/src/emitter-framework/index.js" } }, "browser": { diff --git a/packages/html-program-viewer/package.json b/packages/html-program-viewer/package.json index 736bc974da..20bd7cc5bb 100644 --- a/packages/html-program-viewer/package.json +++ b/packages/html-program-viewer/package.json @@ -20,12 +20,12 @@ "main": "dist/src/index.js", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "tspMain": "dist/src/index.js", diff --git a/packages/http/package.json b/packages/http/package.json index 04b05cfff9..dc3e40a07a 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -21,12 +21,12 @@ "tspMain": "lib/http.tsp", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "engines": { diff --git a/packages/library-linter/package.json b/packages/library-linter/package.json index 5d42e979ac..4e20f1911a 100644 --- a/packages/library-linter/package.json +++ b/packages/library-linter/package.json @@ -20,12 +20,12 @@ "main": "dist/src/index.js", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "tspMain": "dist/src/index.js", diff --git a/packages/lint/package.json b/packages/lint/package.json index 2dc87d2982..556380f6aa 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -21,12 +21,12 @@ "tspMain": "dist/src/index.js", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "engines": { diff --git a/packages/openapi/package.json b/packages/openapi/package.json index 2e07df93c8..077aa56bb3 100644 --- a/packages/openapi/package.json +++ b/packages/openapi/package.json @@ -21,12 +21,12 @@ "tspMain": "lib/main.tsp", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "engines": { diff --git a/packages/openapi3/package.json b/packages/openapi3/package.json index 0ccc41d484..541960e82e 100644 --- a/packages/openapi3/package.json +++ b/packages/openapi3/package.json @@ -21,12 +21,12 @@ "tspMain": "lib/main.tsp", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "engines": { diff --git a/packages/playground/package.json b/packages/playground/package.json index ac699c1057..e7b3116b80 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -20,24 +20,24 @@ "main": "dist/src/index.js", "exports": { ".": { - "default": "./dist/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/index.js" }, "./vite": { - "default": "./dist/vite/index.js", - "types": "./dist/src/vite/index.d.ts" + "types": "./dist/src/vite/index.d.ts", + "default": "./dist/vite/index.js" }, "./manifest": { - "default": "./dist/manifest.js", - "types": "./dist/src/manifest.d.ts" + "types": "./dist/src/manifest.d.ts", + "default": "./dist/manifest.js" }, "./react": { - "default": "./dist/react/index.js", - "types": "./dist/src/react/index.d.ts" + "types": "./dist/src/react/index.d.ts", + "default": "./dist/react/index.js" }, "./react/viewers": { - "default": "./dist/react/viewers.js", - "types": "./dist/src/react/viewers.d.ts" + "types": "./dist/src/react/viewers.d.ts", + "default": "./dist/react/viewers.js" }, "./style.css": "./dist/index.css" }, diff --git a/packages/rest/package.json b/packages/rest/package.json index fda3864f5f..769379bd57 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -21,12 +21,12 @@ "tspMain": "lib/rest.tsp", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "engines": { diff --git a/packages/samples/package.json b/packages/samples/package.json index cbeb7b3ab3..ed03b9626f 100644 --- a/packages/samples/package.json +++ b/packages/samples/package.json @@ -21,8 +21,8 @@ "type": "module", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" } }, "engines": { diff --git a/packages/tspd/package.json b/packages/tspd/package.json index d5cc2b4c98..8c5bde0615 100644 --- a/packages/tspd/package.json +++ b/packages/tspd/package.json @@ -23,16 +23,16 @@ "main": "./dist/src/index.js", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./ref-doc": { - "default": "./dist/src/ref-doc/index.js", - "types": "./dist/src/ref-doc/index.d.ts" + "types": "./dist/src/ref-doc/index.d.ts", + "default": "./dist/src/ref-doc/index.js" }, "./ref-doc/emitters/docusaurus": { - "default": "./dist/src/ref-doc/emitters/docusaurus.js", - "types": "./dist/src/ref-doc/emitters/docusaurus.d.ts" + "types": "./dist/src/ref-doc/emitters/docusaurus.d.ts", + "default": "./dist/src/ref-doc/emitters/docusaurus.js" } }, "engines": { diff --git a/packages/versioning/package.json b/packages/versioning/package.json index b5361061aa..3099bbb8b2 100644 --- a/packages/versioning/package.json +++ b/packages/versioning/package.json @@ -21,12 +21,12 @@ "tspMain": "lib/versioning.tsp", "exports": { ".": { - "default": "./dist/src/index.js", - "types": "./dist/src/index.d.ts" + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" }, "./testing": { - "default": "./dist/src/testing/index.js", - "types": "./dist/src/testing/index.d.ts" + "types": "./dist/src/testing/index.d.ts", + "default": "./dist/src/testing/index.js" } }, "engines": {