8000 chore: update imports · opennextjs/opennextjs-netlify@aa4008e · GitHub
[go: up one dir, main page]

Skip to content

Commit aa4008e

Browse files
committed
chore: update imports
1 parent 4c74dbb commit aa4008e

File tree

13 files changed

+89
-90
lines changed

13 files changed

+89
-90
lines changed

package-lock.json

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

packages/runtime/src/helpers/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NetlifyConfig } from '@netlify/build/types'
1+
import type { NetlifyConfig } from '@netlify/build'
22
import destr from 'destr'
33
import { readJSON, writeJSON } from 'fs-extra'
44
import type { Header } from 'next/dist/lib/load-custom-routes'

packages/runtime/src/helpers/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { resolve } from 'path'
22

3-
import type { OnPreBuild } from '@netlify/build/types'
3+
import type { OnPreBuild } from '@netlify/build'
44
import execa from 'execa'
55

66
import { writeDevEdgeFunction } from './edge'

packages/runtime/src/helpers/edge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { promises as fs, existsSync } from 'fs'
22
import { resolve, join } from 'path'
33

4-
import type { NetlifyConfig, NetlifyPluginConstants } from '@netlify/build/types'
4+
impor 8000 t type { NetlifyConfig, NetlifyPluginConstants } from '@netlify/build'
55
import { greenBright } from 'chalk'
66
import destr from 'destr'
77
import { copy, copyFile, emptyDir, ensureDir, readJSON, writeJSON, writeJson } from 'fs-extra'

packages/runtime/src/helpers/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { cpus } from 'os'
22

33
import type { Blobs } from '@netlify/blobs'
4-
import type { NetlifyConfig } from '@netlify/build/types'
4+
import type { NetlifyConfig } from '@netlify/build'
55
import { yellowBright } from 'chalk'
66
import { existsSync, readJson, move, copy, writeJson, ensureDir, readFileSync, remove, readFile } from 'fs-extra'
77
import globby from 'globby'

packages/runtime/src/helpers/functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NetlifyConfig, NetlifyPluginConstants } from '@netlify/build/types'
1+
import type { NetlifyConfig, NetlifyPluginConstants } from '@netlify/build'
22
import bridgeFile from '@vercel/node-bridge'
33
import chalk from 'chalk'
44
import destr from 'destr'

packages/runtime/src/helpers/redirects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NetlifyConfig } from '@netlify/build/types'
1+
import type { NetlifyConfig } from '@netlify/build'
22
import { yellowBright } from 'chalk'
33
import destr from 'destr'
44
import { readJSON } from 'fs-extra'

packages/runtime/src/helpers/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 6D40 @@
1-
import type { NetlifyConfig } from '@netlify/build/types'
2-
import type { Header } from '@netlify/build/types/config/netlify_config'
1+
import type { NetlifyConfig } from '@netlify/build'
32
import globby from 'globby'
43
import type { ExperimentalConfig } from 'next/dist/server/config-shared'
54
import type { ImageConfigComplete, RemotePattern } from 'next/dist/shared/lib/image-config'
@@ -292,7 +291,7 @@ export const isNextAuthInstalled = (): boolean => {
292291
}
293292
}
294293

295-
export const getCustomImageResponseHeaders = (headers: Header[]): Record<string, string> | null => {
294+
export const getCustomImageResponseHeaders = (headers: NetlifyConfig['headers']): Record<string, string> | null => {
296295
const customImageResponseHeaders = headers.find((header) => header.for?.startsWith('/_next/image/'))
297296

298297
if (customImageResponseHeaders) {

packages/runtime/src/helpers/verification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { existsSync, promises } from 'fs'
22
import path, { relative, join } from 'path'
33

4-
import type { NetlifyConfig, NetlifyPluginUtils } from '@netlify/build/types'
4+
import type { NetlifyConfig, NetlifyPluginUtils } from '@netlify/build'
55
import { yellowBright, greenBright, blueBright, reset } from 'chalk'
66
import { async as StreamZip } from 'node-stream-zip'
77
import { outdent } from 'outdent'

packages/runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join, relative } from 'path'
22

3-
import type { NetlifyPlugin, NetlifyPluginConstants, NetlifyPluginOptions } from '@netlify/build/types'
3+
import type { NetlifyPlugin, NetlifyPluginConstants, NetlifyPluginOptions } from '@netlify/build'
44
import { bold, redBright } from 'chalk'
55
import destr from 'destr'
66
import { existsSync, readFileSync } from 'fs-extra'

test/helpers/config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NetlifyPluginOptions } from '@netlify/build/types'
1+
import type { NetlifyPluginOptions } from '@netlify/build'
22

33
import { generateCustomHeaders, NextConfig } from '../../packages/runtime/src/helpers/config'
44

test/helpers/verification.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NetlifyPluginOptions, NetlifyPluginUtils } from '@netlify/build/types'
1+
import type { NetlifyPluginOptions, NetlifyPluginUtils } from '@netlify/build'
22
import Chance from 'chance'
33
import { outdent } from 'outdent'
44

test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import os from 'os'
22
import path, { resolve } from 'path'
33
import process from 'process'
44

5-
import type { NetlifyPluginOptions } from '@netlify/build/types'
5+
import type { NetlifyPluginOptions } from '@netlify/build'
66
import Chance from 'chance'
77
import { writeJSON, unlink, existsSync, readFileSync, ensureDir, readJson, pathExists, writeFile, move } from 'fs-extra'
88
import { join, relative } from 'pathe'

0 commit comments

Comments
 (0)
0