Skip to content

Commit

Permalink
Add standard header to node_modules_paths.js. Add adaptation note to …
Browse files Browse the repository at this point in the history
…default_resolver.js.
  • Loading branch information
tvald committed Aug 21, 2017
1 parent 580f0c8 commit 3313380
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/default_resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function defaultResolver(path: Path, options: ResolverOptions): Path {
module.exports = defaultResolver;

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

Expand Down
12 changes: 12 additions & 0 deletions packages/jest-resolve/src/node_modules_paths.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Adapted from: https://github.com/substack/node-resolve
*
* @flow
*/

import type {Path} from 'types/Config';
import path from 'path';

Expand Down

0 comments on commit 3313380

Please sign in to comment.