Skip to content

Commit 3313380

Browse files
committed
Add standard header to node_modules_paths.js. Add adaptation note to default_resolver.js.
1 parent 580f0c8 commit 3313380

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/jest-resolve/src/default_resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function defaultResolver(path: Path, options: ResolverOptions): Path {
3434
module.exports = defaultResolver;
3535

3636
/*
37-
* resolve logic, adapted from resolve.sync
37+
* Adapted from: https://github.com/substack/node-resolve
3838
*/
3939
type ErrorWithCode = Error & {code?: string};
4040

packages/jest-resolve/src/node_modules_paths.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/**
2+
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
3+
*
4+
* This source code is licensed under the BSD-style license found in the
5+
* LICENSE file in the root directory of this source tree. An additional grant
6+
* of patent rights can be found in the PATENTS file in the same directory.
7+
*
8+
* Adapted from: https://github.com/substack/node-resolve
9+
*
10+
* @flow
11+
*/
12+
113
import type {Path} from 'types/Config';
214
import path from 'path';
315

0 commit comments

Comments
 (0)