Skip to content

Commit

Permalink
chore: ignore strict peer deps, fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Aug 1, 2022
1 parent bb6b571 commit 8b7fbfd
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpx commitlint --edit "$1"
pnpm dlx commitlint --edit "$1"
1 change: 1 addition & 0 deletions .npmrc
@@ -1 +1,2 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
strict-peer-dependencies=false
8 changes: 5 additions & 3 deletions packages/adapter-cloudflare-workers/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -33,6 +33,8 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^3.3.1",
"lambda-types": "^1.0.0"
"@types/node": "^18.6.3",
"lambda-types": "^1.0.0",
"typescript": "^4.7.4"
}
}
9 changes: 7 additions & 2 deletions packages/adapter-netlify/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit",
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit",
"test": "tap test.ts --ts --coverage-report=text-lcov --no-check-coverage"
},
"repository": {
Expand All @@ -29,5 +29,10 @@
"premove": "^4.0.0",
"presta": "workspace:^0.45.0",
"toml": "^3.0.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.12",
"@types/node": "^18.6.3",
"typescript": "^4.7.4"
}
}
8 changes: 5 additions & 3 deletions packages/adapter-node/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -31,6 +31,8 @@
"sirv": "^1.0.7"
},
"devDependencies": {
"lambda-types": "^1.0.0"
"@types/node": "^18.6.3",
"lambda-types": "^1.0.0",
"typescript": "^4.7.4"
}
}
1 change: 1 addition & 0 deletions packages/adapter-vercel/lib/adapter.ts
Expand Up @@ -40,6 +40,7 @@ export function requestToEvent(req: NextApiRequest): VercelEvent {
body: req.body || null,
isBase64Encoded,
pathParameters: {},
// @ts-expect-error
cookies: req.cookies || {},
env: req.env,
}
Expand Down
9 changes: 6 additions & 3 deletions packages/adapter-vercel/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -31,8 +31,11 @@
},
"devDependencies": {
"@types/deep-extend": "^0.4.32",
"@types/fs-extra": "^9.0.12",
"@types/node": "^18.6.3",
"lambda-types": "^1.0.0",
"next": "^12.0.8",
"presta": "workspace:^0.45.0"
"presta": "workspace:^0.45.0",
"typescript": "^4.7.4"
}
}
11 changes: 7 additions & 4 deletions packages/create-presta/package.json
Expand Up @@ -11,8 +11,8 @@
"create-presta": "cli.js"
},
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -26,14 +26,17 @@
"homepage": "https://github.com/sure-thing/presta#readme",
"dependencies": {
"deepmerge": "^4.2.2",
"fs-extra": "^9.0.1",
"fs-extra": "^9.1.0",
"kleur": "^4.1.4",
"presta": "workspace:^0.45.0",
"prompts": "^2.4.2",
"sort-package-json": "^1.54.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.12",
"@types/node": "^18.6.3",
"@types/prompts": "^2.0.14",
"package-json-types": "^1.0.2"
"package-json-types": "^1.0.2",
"typescript": "^4.7.4"
}
}
4 changes: 2 additions & 2 deletions packages/html/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand Down
10 changes: 7 additions & 3 deletions packages/load/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -20,5 +20,9 @@
"bugs": {
"url": "https://github.com/sure-thing/presta/issues"
},
"homepage": "https://github.com/sure-thing/presta#readme"
"homepage": "https://github.com/sure-thing/presta#readme",
"devDependencies": {
"@types/node": "^18.6.3",
"typescript": "^4.7.4"
}
}
4 changes: 2 additions & 2 deletions packages/presta/package.json
Expand Up @@ -11,9 +11,9 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"build": "node scripts/build && tsc --emitDeclarationOnly",
"cloc": "pnpm dlx cloc './lib/*.ts'",
"typecheck": "pnpx tsc --noEmit"
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand Down
10 changes: 7 additions & 3 deletions packages/source-filesystem/package.json
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -24,7 +24,11 @@
"dependencies": {
"filewatcher": "^3.0.1",
"pirates": "^4.0.1",
"presta": "workspace:^0.45.0",
"presta": "workspace:^0.45.4",
"tiny-glob": "^0.2.9"
},
"devDependencies": {
"@types/node": "^18.6.3",
"typescript": "^4.7.4"
}
}
12 changes: 8 additions & 4 deletions packages/utils/package.json
Expand Up @@ -5,8 +5,8 @@
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "node scripts/build && pnpx tsc --emitDeclarationOnly",
"typecheck": "pnpx tsc --noEmit"
"build": "node scripts/build && tsc --emitDeclarationOnly",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand All @@ -19,13 +19,17 @@
},
"homepage": "https://github.com/sure-thing/presta#readme",
"dependencies": {
"mime-types": "^2.1.31",
"mime-types": "^2.1.35",
"query-string": "^6.14.1",
"raw-body": "^2.4.1",
"regexparam": "^1.3.0",
"statuses": "^2.0.1"
},
"devDependencies": {
"lambda-types": "^1.0.0"
"@types/mime-types": "^2.1.0",
"@types/node": "^18.6.3",
"@types/statuses": "^2.0.0",
"lambda-types": "^1.0.0",
"typescript": "^4.7.4"
}
}

0 comments on commit 8b7fbfd

Please sign in to comment.