chore: update all package.json main, types, exports, publishConfig

This commit is contained in:
Elliot DeNolf
2024-03-19 00:45:50 -04:00
parent d4e7cabee5
commit 1e10f021b5
16 changed files with 173 additions and 58 deletions

View File

@@ -41,10 +41,23 @@
"peerDependencies": {
"payload": "workspace:*"
},
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"main": "./dist/index.js",
"registry": "https://registry.npmjs.org/",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.ts",
"require": "./dist/index.ts",
"types": "./dist/index.d.ts"
}
}
},
"files": [
"dist",

View File

@@ -39,11 +39,34 @@
"peerDependencies": {
"payload": "workspace:*"
},
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
},
"./types": {
"import": "./src/types.ts",
"require": "./src/types.ts",
"types": "./src/types.ts"
}
},
"publishConfig": {
"main": "./dist/index.js",
"registry": "https://registry.npmjs.org/",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./types": {
"import": "./dist/types.js",
"require": "./dist/types.js",
"types": "./dist/types.d.ts"
}
}
},
"files": [
"dist",
"mock.js"

View File

@@ -45,8 +45,7 @@
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"registry": "https://registry.npmjs.org/"
}
},
"files": [
"dist"

View File

@@ -30,8 +30,8 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"types": "./src/index.ts"
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"publishConfig": {

View File

@@ -23,8 +23,8 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"types": "./src/index.ts"
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"publishConfig": {

View File

@@ -2,8 +2,8 @@
"name": "@payloadcms/plugin-cloud-storage",
"description": "The official cloud storage plugin for Payload CMS",
"version": "3.0.0-alpha.48",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"type": "module",
"license": "MIT",
"scripts": {
@@ -62,15 +62,15 @@
"require": "./src/index.ts",
"types": "./src/index.ts"
},
"./types": {
"import": "./src/types.ts",
"require": "./src/types.ts",
"types": "./src/types.ts"
},
"./*": {
"import": "./src/exports/*.ts",
"require": "./src/exports/*.ts",
"types": "./src/exports/*.ts"
},
"./dist/*": {
"import": "./src/*.ts",
"require": "./src/*.ts",
"types": "./src/*.ts"
}
},
"publishConfig": {
@@ -80,15 +80,15 @@
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./types": {
"import": "./dist/types.js",
"require": "./dist/types.js",
"types": "./dist/types.d.ts"
},
"./*": {
"import": "./dist/exports/*.js",
"require": "./dist/exports/*.js",
"types": "./dist/exports/*.d.ts"
},
"./dist/*": {
"import": "./dist/*.js",
"require": "./dist/*.js",
"types": "./dist/*.d.ts"
}
},
"main": "./dist/index.js",

View File

@@ -2,8 +2,8 @@
"name": "@payloadcms/plugin-cloud",
"description": "The official Payload Cloud plugin",
"version": "3.0.0-alpha.48",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"license": "MIT",
"type": "module",
"scripts": {
@@ -32,6 +32,24 @@
"payload": "workspace:*",
"ts-jest": "^29.1.0"
},
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.js"
}
}
},
"files": [
"dist"
]

View File

@@ -4,8 +4,8 @@
"version": "1.2.1",
"homepage:": "https://payloadcms.com",
"repository": "git@github.com:payloadcms/plugin-form-builder.git",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"license": "MIT",
"author": "dev@payloadcms.com",
"type": "module",
@@ -38,6 +38,24 @@
"react": "^18.0.0",
"ts-node": "10.9.1"
},
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
},
"files": [
"dist",
"types.js",

View File

@@ -26,15 +26,21 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"exports": null,
"main": "./dist/index.js",
"registry": "https://registry.npmjs.org/",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
},
"files": [
"dist",

View File

@@ -4,8 +4,8 @@
"homepage:": "https://payloadcms.com",
"repository": "git@github.com:payloadcms/plugin-redirects.git",
"description": "Redirects plugin for Payload",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"type": "module",
"scripts": {
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types",
@@ -38,15 +38,21 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"exports": null,
"main": "./dist/index.js",
"registry": "https://registry.npmjs.org/",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
},
"files": [
"dist",

View File

@@ -79,4 +79,4 @@ const redirects =
],
})
export default redirects
export { redirects }

View File

@@ -43,8 +43,8 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"types": "./src/index.ts"
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"publishConfig": {

View File

@@ -4,8 +4,8 @@
"homepage:": "https://payloadcms.com",
"repository": "git@github.com:payloadcms/plugin-sentry.git",
"description": "Sentry plugin for Payload",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"type": "module",
"scripts": {
"build": "echo \"Build temporarily disabled.\" && exit 0",
@@ -50,5 +50,23 @@
"payload": "workspace:*",
"ts-jest": "^29.1.0",
"webpack": "^5.78.0"
},
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
}
}

View File

@@ -4,8 +4,8 @@
"homepage:": "https://payloadcms.com",
"repository": "git@github.com:payloadcms/plugin-seo.git",
"description": "SEO plugin for Payload",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./src/index.tsx",
"types": "./src/index.tsx",
"type": "module",
"scripts": {
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types",
@@ -44,8 +44,9 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"types": "./src/index.ts"
"import": "./src/index.tsx",
"types": "./src/index.tsx",
"default": "./src/index.tsx"
}
},
"publishConfig": {

View File

@@ -4,8 +4,8 @@
"homepage:": "https://payloadcms.com",
"repository": "git@github.com:payloadcms/plugin-stripe.git",
"description": "Stripe plugin for Payload",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"type": "module",
"scripts": {
"build": "echo \"Build temporarily disabled.\" && exit 0",
@@ -48,6 +48,24 @@
"react": "^18.0.0",
"webpack": "^5.78.0"
},
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts",
"types": "./src/index.ts"
}
},
"publishConfig": {
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
},
"files": [
"dist",
"types.js",

View File

@@ -6,8 +6,8 @@
"license": "MIT",
"homepage": "https://payloadcms.com",
"author": "Payload CMS, Inc.",
"main": "./src/index.ts",
"types": "./dist/index.d.ts",
"main": "./src/index.tsx",
"types": "./src/index.tsx",
"type": "module",
"scripts": {
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types",
@@ -40,18 +40,13 @@
},
"exports": {
".": {
"default": "./src/index.ts",
"types": "./src/index.ts"
"import": "./src/index.tsx",
"require": "./src/index.tsx",
"types": "./src/index.tsx"
}
},
"publishConfig": {
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"exports": null,
"main": "./dist/index.js",
"registry": "https://registry.npmjs.org/",
"types": "./dist/index.d.ts"