Skip to content

Commit

Permalink
Fix: Default must be last
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Nov 6, 2023
1 parent 0691b48 commit 2795302
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 58 deletions.
16 changes: 8 additions & 8 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions packages/html-program-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions packages/library-linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions packages/openapi3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
20 changes: 10 additions & 10 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 6 additions & 6 deletions packages/tspd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions packages/versioning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 2795302

Please sign in to comment.