Skip to content

Commit b40b8e1

Browse files
authored
feat: setup knip (#567)
* chore(deps-dev): install knip * feat: knip config file * fix: knip errors * chore: build * chore: changeset
1 parent c071877 commit b40b8e1

21 files changed

Lines changed: 297 additions & 60 deletions

File tree

.changeset/wild-frogs-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'github-actions-cloudflare-pages': patch
3+
---
4+
5+
feat: setup [knip](https://knip.dev) to help declutter project

__generated__/gql/gql.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__generated__/gql/graphql.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/helpers/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ export const MOCK_ACCOUNT_ID = 'mock-cloudflare-account-id'
6161
export const MOCK_PROJECT_NAME = 'mock-cloudflare-project-name'
6262
export const MOCK_DEPLOYMENT_ID = 'mock-deployment-id'
6363

64-
export const MOCK_API_PATH = `/client/v4/accounts/${MOCK_ACCOUNT_ID}/pages/projects/${MOCK_PROJECT_NAME}`
64+
const MOCK_API_PATH = `/client/v4/accounts/${MOCK_ACCOUNT_ID}/pages/projects/${MOCK_PROJECT_NAME}`
6565
export const MOCK_API_PATH_DEPLOYMENTS = `${MOCK_API_PATH}/deployments`
6666
export const MOCK_API_PATH_DEPLOYMENTS_DELETE = `${MOCK_API_PATH}/deployments/${MOCK_DEPLOYMENT_ID}?force=true`

bin/codegen/types/github-workflow-events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ const schema = createRequire(import.meta.url)(
2020
'@octokit/webhooks-schemas'
2121
) as Schema
2222

23-
export const capitalize = (str: string) => {
23+
const capitalize = (str: string) => {
2424
assert.ok(str.length > 0 && str[0], 'unable to capitalize string')
2525

2626
return `${str[0].toUpperCase()}${str.slice(1)}`
2727
}
2828

29-
export const guessAtInterfaceName = (schema: JSONSchema7): string => {
29+
const guessAtInterfaceName = (schema: JSONSchema7): string => {
3030
const str = schema.title || schema.$id
3131

3232
assert.ok(str, 'unable to guess interface name')

dist/delete/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)