Skip to content

Commit f369128

Browse files
committed
fix lint
1 parent 0e4bee3 commit f369128

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

src/adapter/adapter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const adapter: NextAdapter = {
2929
async onBuildComplete(nextAdapterContext) {
3030
// for dev/debugging purposes only
3131
await writeFile('./onBuildComplete.json', JSON.stringify(nextAdapterContext, null, 2))
32+
// debugger
3233

3334
console.log('onBuildComplete hook called')
3435

@@ -53,8 +54,6 @@ const adapter: NextAdapter = {
5354
JSON.stringify(frameworksAPIConfig, null, 2),
5455
)
5556
}
56-
57-
debugger
5857
},
5958
}
6059

src/adapter/middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { cp, mkdir, readFile, writeFile } from 'node:fs/promises'
12
import { dirname, join, parse } from 'node:path'
23
import { fileURLToPath } from 'node:url'
34

5+
import { glob } from 'fast-glob'
46
import { pathToRegexp } from 'path-to-regexp'
57

68
import type { FrameworksAPIConfig, NextConfigComplete, OnBuildCompleteContext } from './types.js'
7-
import { cp, mkdir, readFile, writeFile } from 'node:fs/promises'
8-
import { glob } from 'fast-glob'
99

1010
const NETLIFY_FRAMEWORKS_API_EDGE_FUNCTIONS = '.netlify/v1/edge-functions'
1111
const MIDDLEWARE_FUNCTION_NAME = 'middleware'

src/build/content/static.test.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import glob from 'fast-glob'
77
import type { PrerenderManifest } from 'next/dist/build/index.js'
88
import { beforeEach, describe, expect, Mock, test, vi } from 'vitest'
99

10-
import { decodeBlobKey, encodeBlobKey, mockFileSystem } from '../../../tests/index.js'
10+
import { decodeBlobKey, encodeBlobKey } from '../../../tests/index.js'
1111
import { type FixtureTestContext } from '../../../tests/utils/contexts.js'
1212
import { createFsFixture } from '../../../tests/utils/fixture.js'
1313
import { HtmlBlob } from '../../shared/blob-types.cjs'
@@ -57,20 +57,8 @@ const createFsFixtureWithBasePath = (
5757
)
5858
}
5959

60-
async function readDirRecursive(dir: string) {
61-
const posixPaths = await glob('**/*', { cwd: dir, dot: true, absolute: true })
62-
// glob always returns unix-style paths, even on Windows!
63-
// To compare them more easily in our tests running on Windows, we convert them to the platform-specific paths.
64-
const paths = posixPaths.map((posixPath) => join(posixPath))
65-
return paths
66-
}
67-
6860
let failBuildMock: Mock<PluginContext['utils']['build']['failBuild']>
6961

70-
const dontFailTest: PluginContext['utils']['build']['failBuild'] = () => {
71-
return undefined as never
72-
}
73-
7462
describe('Regular Repository layout', () => {
7563
beforeEach<Context>((ctx) => {
7664
failBuildMock = vi.fn((msg, err) => {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
publishStaticDir,
1414
unpublishStaticDir,
1515
} from './build/content/static.js'
16-
import { clearStaleEdgeHandlers, createEdgeHandlers } from './build/functions/edge.js'
16+
import { clearStaleEdgeHandlers } from './build/functions/edge.js'
1717
import { clearStaleServerHandlers, createServerHandler } from './build/functions/server.js'
1818
import { PluginContext } from './build/plugin-context.js'
1919
import {

0 commit comments

Comments
 (0)