Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9c2e43a3
Commit
9c2e43a3
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
find-up
parent
e68b5622
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
28 additions
and
13 deletions
+28
-13
index.ts
packages/next/build/index.ts
+1
-1
collect-plugins.ts
packages/next/build/plugins/collect-plugins.ts
+1
-1
next-dev.ts
packages/next/cli/next-dev.ts
+6
-3
index.ts
packages/next/export/index.ts
+1
-1
find-config.ts
packages/next/lib/find-config.ts
+1
-1
load-env-config.ts
packages/next/lib/load-env-config.ts
+1
-1
config.ts
packages/next/next-server/server/config.ts
+1
-1
package.json
packages/next/package.json
+1
-1
next-dev-server.ts
packages/next/server/next-dev-server.ts
+1
-1
taskfile.js
packages/next/taskfile.js
+8
-0
plugins.ts
packages/next/telemetry/events/plugins.ts
+1
-1
version.ts
packages/next/telemetry/events/version.ts
+1
-1
misc.d.ts
packages/next/types/misc.d.ts
+4
-0
No files found.
packages/next/build/index.ts
View file @
9c2e43a3
...
...
@@ -3,7 +3,7 @@ import ciEnvironment from 'next/dist/compiled/ci-info'
import
crypto
from
'crypto'
import
devalue
from
'next/dist/compiled/devalue'
import
escapeStringRegexp
from
'next/dist/compiled/escape-string-regexp'
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
fs
from
'fs'
import
Worker
from
'jest-worker'
import
nanoid
from
'next/dist/compiled/nanoid/index.js'
...
...
packages/next/build/plugins/collect-plugins.ts
View file @
9c2e43a3
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
fs
from
'fs'
import
path
from
'path'
import
{
promisify
}
from
'util'
...
...
packages/next/cli/next-dev.ts
View file @
9c2e43a3
...
...
@@ -67,9 +67,12 @@ const nextDev: cliCommand = argv => {
.
catch
(
err
=>
{
if
(
err
.
code
===
'EADDRINUSE'
)
{
let
errorMessage
=
`Port
${
port
}
is already in use.`
const
pkgAppPath
=
require
(
'find-up'
).
sync
(
'package.json'
,
{
cwd
:
dir
,
})
const
pkgAppPath
=
require
(
'next/dist/compiled/find-up'
).
sync
(
'package.json'
,
{
cwd
:
dir
,
}
)
const
appPackage
=
require
(
pkgAppPath
)
if
(
appPackage
.
scripts
)
{
const
nextScript
=
Object
.
entries
(
appPackage
.
scripts
).
find
(
...
...
packages/next/export/index.ts
View file @
9c2e43a3
import
chalk
from
'next/dist/compiled/chalk'
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
{
copyFile
as
copyFileOrig
,
existsSync
,
...
...
packages/next/lib/find-config.ts
View file @
9c2e43a3
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
fs
from
'fs'
import
JSON5
from
'next/dist/compiled/json5'
...
...
packages/next/lib/load-env-config.ts
View file @
9c2e43a3
...
...
@@ -3,7 +3,7 @@ import path from 'path'
import
chalk
from
'next/dist/compiled/chalk'
import
dotenvExpand
from
'next/dist/compiled/dotenv-expand'
import
dotenv
,
{
DotenvConfigOutput
}
from
'next/dist/compiled/dotenv'
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
export
type
Env
=
{
[
key
:
string
]:
string
}
...
...
packages/next/next-server/server/config.ts
View file @
9c2e43a3
import
chalk
from
'next/dist/compiled/chalk'
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
os
from
'os'
import
{
basename
,
extname
}
from
'path'
...
...
packages/next/package.json
View file @
9c2e43a3
...
...
@@ -66,7 +66,6 @@
"cssnano-simple"
:
"1.0.0"
,
"file-loader"
:
"4.2.0"
,
"finally-polyfill"
:
"0.1.0"
,
"find-up"
:
"4.0.0"
,
"fork-ts-checker-webpack-plugin"
:
"3.1.1"
,
"ignore-loader"
:
"0.1.2"
,
"jest-worker"
:
"24.9.0"
,
...
...
@@ -174,6 +173,7 @@
"dotenv-expand"
:
"5.1.0"
,
"escape-string-regexp"
:
"2.0.0"
,
"etag"
:
"1.8.1"
,
"find-up"
:
"4.0.0"
,
"fresh"
:
"0.5.2"
,
"gzip-size"
:
"5.1.1"
,
"http-proxy"
:
"1.18.0"
,
...
...
packages/next/server/next-dev-server.ts
View file @
9c2e43a3
import
AmpHtmlValidator
from
'next/dist/compiled/amphtml-validator'
import
crypto
from
'crypto'
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
fs
from
'fs'
import
{
IncomingMessage
,
ServerResponse
}
from
'http'
import
Worker
from
'jest-worker'
...
...
packages/next/taskfile.js
View file @
9c2e43a3
...
...
@@ -383,6 +383,13 @@ export async function ncc_etag(task, opts) {
.
target
(
'dist/compiled/etag'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_find_up
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'find-up'
)))
.
ncc
({
packageName
:
'find-up'
,
externals
})
.
target
(
'dist/compiled/find-up'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_fresh
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'fresh'
)))
...
...
@@ -583,6 +590,7 @@ export async function precompile(task) {
'ncc_dotenv_expand'
,
'ncc_escape_string_regexp'
,
'ncc_etag'
,
'ncc_find_up'
,
'ncc_fresh'
,
'ncc_gzip_size'
,
'ncc_http_proxy'
,
...
...
packages/next/telemetry/events/plugins.ts
View file @
9c2e43a3
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
const
EVENT_PLUGIN_PRESENT
=
'NEXT_PACKAGE_DETECTED'
type
NextPluginsEvent
=
{
...
...
packages/next/telemetry/events/version.ts
View file @
9c2e43a3
import
findUp
from
'find-up'
import
findUp
from
'
next/dist/compiled/
find-up'
import
path
from
'path'
import
{
CONFIG_FILE
,
...
...
packages/next/types/misc.d.ts
View file @
9c2e43a3
...
...
@@ -100,6 +100,10 @@ declare module 'next/dist/compiled/etag' {
import
m
from
'etag'
export
=
m
}
declare
module
'next/dist/compiled/find-up'
{
import
m
from
'find-up'
export
=
m
}
declare
module
'next/dist/compiled/fresh'
{
import
m
from
'fresh'
export
=
m
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment