mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-02-01 20:57:54 +01:00
update esm extensions to mjs
This commit is contained in:
10
package.json
10
package.json
@@ -9,15 +9,15 @@
|
|||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
".": {
|
".": {
|
||||||
"require": "./dist/index.cjs",
|
"require": "./dist/index.cjs",
|
||||||
"import": "./dist/index.js"
|
"import": "./dist/index.mjs"
|
||||||
},
|
},
|
||||||
"./client": {
|
"./client": {
|
||||||
"require": "./dist/client/index.cjs",
|
"require": "./dist/client/index.cjs",
|
||||||
"import": "./dist/client/index.js"
|
"import": "./dist/client/index.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.mjs",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"eslint": "^8.25.0",
|
"eslint": "^8.25.0",
|
||||||
"nuxt": "3.0.0-rc.12",
|
"nuxt": "3.0.0-rc.12",
|
||||||
"pnpm": "^7.14.1",
|
"pnpm": "^7.14.1",
|
||||||
"tsup": "6.0.1",
|
"tsup": "6.3.0",
|
||||||
"typescript": "^4.7.4"
|
"typescript": "^4.7.4"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|||||||
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@@ -14,7 +14,7 @@ importers:
|
|||||||
nuxt: 3.0.0-rc.12
|
nuxt: 3.0.0-rc.12
|
||||||
ohash: ^0.1.5
|
ohash: ^0.1.5
|
||||||
pnpm: ^7.14.1
|
pnpm: ^7.14.1
|
||||||
tsup: 6.0.1
|
tsup: 6.3.0
|
||||||
typescript: ^4.7.4
|
typescript: ^4.7.4
|
||||||
ufo: ^0.8.6
|
ufo: ^0.8.6
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -30,7 +30,7 @@ importers:
|
|||||||
eslint: 8.26.0
|
eslint: 8.26.0
|
||||||
nuxt: 3.0.0-rc.12_wyqvi574yv7oiwfeinomdzmc3m
|
nuxt: 3.0.0-rc.12_wyqvi574yv7oiwfeinomdzmc3m
|
||||||
pnpm: 7.14.1
|
pnpm: 7.14.1
|
||||||
tsup: 6.0.1_typescript@4.8.4
|
tsup: 6.3.0_typescript@4.8.4
|
||||||
typescript: 4.8.4
|
typescript: 4.8.4
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
@@ -2695,13 +2695,13 @@ packages:
|
|||||||
semver: 7.3.8
|
semver: 7.3.8
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/bundle-require/3.1.0_esbuild@0.14.54:
|
/bundle-require/3.1.0_esbuild@0.15.12:
|
||||||
resolution: {integrity: sha512-IIXtAO7fKcwPHNPt9kY/WNVJqy7NDy6YqJvv6ENH0TOZoJ+yjpEsn1w40WKZbR2ibfu5g1rfgJTvmFHpm5aOMA==}
|
resolution: {integrity: sha512-IIXtAO7fKcwPHNPt9kY/WNVJqy7NDy6YqJvv6ENH0TOZoJ+yjpEsn1w40WKZbR2ibfu5g1rfgJTvmFHpm5aOMA==}
|
||||||
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
esbuild: '>=0.13'
|
esbuild: '>=0.13'
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.14.54
|
esbuild: 0.15.12
|
||||||
load-tsconfig: 0.2.3
|
load-tsconfig: 0.2.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@@ -9117,8 +9117,8 @@ packages:
|
|||||||
engines: {node: '>=0.6.x'}
|
engines: {node: '>=0.6.x'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/tsup/6.0.1_typescript@4.8.4:
|
/tsup/6.3.0_typescript@4.8.4:
|
||||||
resolution: {integrity: sha512-2Pl1YkEEvzfg4aYgwUILaHV0wwZQKO7mNHMQChyzdCNlQqf11eug7gWk86XCb3CvRofCXBX87x73BTGjyS3cOQ==}
|
resolution: {integrity: sha512-IaNQO/o1rFgadLhNonVKNCT2cks+vvnWX3DnL8sB87lBDqRvJXHENr5lSPJlqwplUlDxSwZK8dSg87rgBu6Emw==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -9133,11 +9133,11 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
bundle-require: 3.1.0_esbuild@0.14.54
|
bundle-require: 3.1.0_esbuild@0.15.12
|
||||||
cac: 6.7.14
|
cac: 6.7.14
|
||||||
chokidar: 3.5.3
|
chokidar: 3.5.3
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
esbuild: 0.14.54
|
esbuild: 0.15.12
|
||||||
execa: 5.1.1
|
execa: 5.1.1
|
||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
joycon: 3.1.1
|
joycon: 3.1.1
|
||||||
|
|||||||
@@ -7,4 +7,10 @@ export default defineConfig({
|
|||||||
clean: true,
|
clean: true,
|
||||||
external: ['#app'],
|
external: ['#app'],
|
||||||
dts: true,
|
dts: true,
|
||||||
|
// @ts-expect-error: Missing type
|
||||||
|
outExtension({ format }) {
|
||||||
|
return {
|
||||||
|
js: format === 'esm' ? '.mjs' : `.${format}`,
|
||||||
|
}
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user