Skip to content

Commit b865d41

Browse files
committed
Update path and add npm config file
1 parent 59f4589 commit b865d41

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2020 The Stdlib Authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#/
18+
19+
# Configuration for [npm][1].
20+
#
21+
# [1]: https://docs.npmjs.com/files/npmrc
22+
23+
# Disable the creation of a lock file:
24+
package-lock = false
25+
shrinkwrap = false
26+
27+
# Disable automatically "saving" dependencies on install:
28+
save = false

docs/migration-guides/lodash/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// MODULES //
2222

23+
var resolve = require( 'path' ).resolve;
2324
var bench = require( '@stdlib/bench' );
2425
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2526
var randu = require( '@stdlib/random/base/randu' );
@@ -31,7 +32,7 @@ var pkg = require( './../package.json' ).name;
3132

3233
// VARIABLES //
3334

34-
var _ = tryRequire( 'lodash' );
35+
var _ = tryRequire( resolve( __dirname, '..', 'node_modules', 'lodash' ) );
3536
var opts = {
3637
'skip': ( _ instanceof Error )
3738
};

0 commit comments

Comments
 (0)