chore: package.json improvements: order, duplicate scripts and packages

This commit is contained in:
Alessio Gravili
2023-09-19 11:51:56 +02:00
parent fbe5f36b29
commit c356b96913
6 changed files with 35 additions and 11 deletions

View File

@@ -13,7 +13,6 @@
"clean:unix": "find . \\( -type d \\( -name node_modules -o -name dist -o -name .cache \\) -o -type f -name tsconfig.tsbuildinfo \\) -exec rm -rf {} +", "clean:unix": "find . \\( -type d \\( -name node_modules -o -name dist -o -name .cache \\) -o -type f -name tsconfig.tsbuildinfo \\) -exec rm -rf {} +",
"dev": "pnpm --filter payload run dev", "dev": "pnpm --filter payload run dev",
"dev:generate-graphql-schema": "ts-node -T ./test/generateGraphQLSchema.ts", "dev:generate-graphql-schema": "ts-node -T ./test/generateGraphQLSchema.ts",
"test:int:postgres": "cross-env PAYLOAD_DATABASE=postgres yarn test:int",
"dev:generate-types": "pnpm --filter payload run dev:generate-types", "dev:generate-types": "pnpm --filter payload run dev:generate-types",
"dev:postgres": "pnpm --filter payload run dev:postgres", "dev:postgres": "pnpm --filter payload run dev:postgres",
"fix": "eslint \"src/**/*.ts\" --fix", "fix": "eslint \"src/**/*.ts\" --fix",
@@ -51,7 +50,6 @@
"express": "4.18.2", "express": "4.18.2",
"form-data": "3.0.1", "form-data": "3.0.1",
"get-port": "5.1.1", "get-port": "5.1.1",
"graphql-request": "3.7.0",
"isomorphic-fetch": "3.0.0", "isomorphic-fetch": "3.0.0",
"jest": "29.6.4", "jest": "29.6.4",
"jest-environment-jsdom": "29.6.4", "jest-environment-jsdom": "29.6.4",

View File

@@ -4,6 +4,7 @@
"description": "The officially supported Vite bundler adapter for Payload", "description": "The officially supported Vite bundler adapter for Payload",
"repository": "https://github.com/payloadcms/payload", "repository": "https://github.com/payloadcms/payload",
"license": "MIT", "license": "MIT",
"homepage": "https://payloadcms.com",
"author": { "author": {
"email": "info@payloadcms.com", "email": "info@payloadcms.com",
"name": "Payload", "name": "Payload",
@@ -12,9 +13,9 @@
"main": "./src/index.ts", "main": "./src/index.ts",
"types": "./src/index.ts", "types": "./src/index.ts",
"scripts": { "scripts": {
"build": "pnpm build:swc && pnpm build:types",
"build:swc": "swc ./src -d ./dist --config-file .swcrc", "build:swc": "swc ./src -d ./dist --config-file .swcrc",
"build:types": "tsc --emitDeclarationOnly --outDir dist", "build:types": "tsc --emitDeclarationOnly --outDir dist"
"build": "pnpm build:swc && pnpm build:types"
}, },
"dependencies": { "dependencies": {
"@rollup/plugin-commonjs": "^25.0.4", "@rollup/plugin-commonjs": "^25.0.4",

View File

@@ -4,6 +4,7 @@
"description": "The officially supported Webpack bundler adapter for Payload", "description": "The officially supported Webpack bundler adapter for Payload",
"repository": "https://github.com/payloadcms/payload", "repository": "https://github.com/payloadcms/payload",
"license": "MIT", "license": "MIT",
"homepage": "https://payloadcms.com",
"author": { "author": {
"email": "info@payloadcms.com", "email": "info@payloadcms.com",
"name": "Payload", "name": "Payload",

View File

@@ -4,6 +4,7 @@
"description": "The officially supported Postgres database adapter for Payload", "description": "The officially supported Postgres database adapter for Payload",
"repository": "https://github.com/payloadcms/payload", "repository": "https://github.com/payloadcms/payload",
"license": "MIT", "license": "MIT",
"homepage": "https://payloadcms.com",
"author": { "author": {
"email": "info@payloadcms.com", "email": "info@payloadcms.com",
"name": "Payload", "name": "Payload",
@@ -14,8 +15,7 @@
"scripts": { "scripts": {
"build": "pnpm build:swc && pnpm build:types", "build": "pnpm build:swc && pnpm build:types",
"build:swc": "swc ./src -d ./dist --config-file .swcrc", "build:swc": "swc ./src -d ./dist --config-file .swcrc",
"build:types": "tsc --emitDeclarationOnly --outDir dist", "build:types": "tsc --emitDeclarationOnly --outDir dist"
"builddisabled": "pnpm build:swc && pnpm build:types"
}, },
"dependencies": { "dependencies": {
"@libsql/client": "^0.3.1", "@libsql/client": "^0.3.1",

View File

@@ -3,6 +3,12 @@
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"description": "Payload styles for ESLint and Prettier", "description": "Payload styles for ESLint and Prettier",
"license": "MIT",
"author": {
"email": "info@payloadcms.com",
"name": "Payload",
"url": "https://payloadcms.com"
},
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
@@ -24,7 +30,5 @@
"eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-regexp": "1.15.0" "eslint-plugin-regexp": "1.15.0"
}, },
"keywords": [], "keywords": []
"author": "",
"license": "MIT"
} }

24
pnpm-lock.yaml generated
View File

@@ -67,8 +67,8 @@ importers:
specifier: 5.1.1 specifier: 5.1.1
version: 5.1.1 version: 5.1.1
graphql-request: graphql-request:
specifier: 3.7.0 specifier: 6.1.0
version: 3.7.0(graphql@16.7.1) version: 6.1.0(graphql@16.7.1)
isomorphic-fetch: isomorphic-fetch:
specifier: 3.0.0 specifier: 3.0.0
version: 3.0.0 version: 3.0.0
@@ -2518,6 +2518,14 @@ packages:
resolution: {integrity: sha512-qprfWkn82Iw821mcKofJ5Pk9wgioHicxcQMxx+5zt5GSKoqdWvgG5AxVmpmUUjzTLPVSH5auBrhI93Deayn/DA==} resolution: {integrity: sha512-qprfWkn82Iw821mcKofJ5Pk9wgioHicxcQMxx+5zt5GSKoqdWvgG5AxVmpmUUjzTLPVSH5auBrhI93Deayn/DA==}
dev: false dev: false
/@graphql-typed-document-node/core@3.2.0(graphql@16.7.1):
resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==}
peerDependencies:
graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
dependencies:
graphql: 16.7.1
dev: true
/@hapi/hoek@9.3.0: /@hapi/hoek@9.3.0:
resolution: {integrity: sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==} resolution: {integrity: sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==}
dev: false dev: false
@@ -8419,6 +8427,18 @@ packages:
- encoding - encoding
dev: true dev: true
/graphql-request@6.1.0(graphql@16.7.1):
resolution: {integrity: sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==}
peerDependencies:
graphql: 14 - 16
dependencies:
'@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1)
cross-fetch: 3.1.8
graphql: 16.7.1
transitivePeerDependencies:
- encoding
dev: true
/graphql-scalars@1.22.2(graphql@16.7.1): /graphql-scalars@1.22.2(graphql@16.7.1):
resolution: {integrity: sha512-my9FB4GtghqXqi/lWSVAOPiTzTnnEzdOXCsAC2bb5V7EFNQjVjwy3cSSbUvgYOtDuDibd+ZsCDhz+4eykYOlhQ==} resolution: {integrity: sha512-my9FB4GtghqXqi/lWSVAOPiTzTnnEzdOXCsAC2bb5V7EFNQjVjwy3cSSbUvgYOtDuDibd+ZsCDhz+4eykYOlhQ==}
engines: {node: '>=10'} engines: {node: '>=10'}