File tree Expand file tree Collapse file tree 4 files changed +26
-101
lines changed
lib/node_modules/@stdlib/_tools/package-json/scripts Expand file tree Collapse file tree 4 files changed +26
-101
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2+
3+ /**
4+ * @license Apache-2.0
5+ *
6+ * Copyright (c) 2021 The Stdlib Authors.
7+ *
8+ * Licensed under the Apache License, Version 2.0 (the "License");
9+ * you may not use this file except in compliance with the License.
10+ * You may obtain a copy of the License at
11+ *
12+ * http://www.apache.org/licenses/LICENSE-2.0
13+ *
14+ * Unless required by applicable law or agreed to in writing, software
15+ * distributed under the License is distributed on an "AS IS" BASIS,
16+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+ * See the License for the specific language governing permissions and
18+ * limitations under the License.
19+ */
20+
221'use strict' ;
322
423/*
@@ -20,12 +39,13 @@ var writeFile = require( '@stdlib/fs/write-file' ).sync;
2039var hasOwnProp = require ( '@stdlib/assert/has-own-property' ) ;
2140var SEP = require ( '@stdlib/constants/path/sep' ) ;
2241var findPkgs = require ( '@stdlib/_tools/pkgs/find' ) . sync ;
42+ var rootDir = require ( '@stdlib/_tools/utils/root-dir' ) ;
2343
2444
2545// VARIABLES //
2646
2747var debug = logger ( 'update-package-names' ) ;
28- var ROOT = resolve ( __dirname , '../../../../../../ lib/ node_modules' ) ;
48+ var ROOT = resolve ( rootDir ( ) , 'lib' , ' node_modules' ) ;
2949
3050
3151// FUNCTIONS //
Original file line number Diff line number Diff line change 3939// MODULES //
4040
4141var proc = require ( 'process' ) ;
42- var debug = require ( 'debug' ) ( 'update-package-os' ) ;
4342var join = require ( 'path' ) . join ;
4443var resolve = require ( 'path' ) . resolve ;
44+ var logger = require ( 'debug' ) ;
4545var parseArgs = require ( 'minimist' ) ;
4646var cwd = require ( '@stdlib/process/cwd' ) ;
4747var findPkgs = require ( '@stdlib/_tools/pkgs/find' ) . sync ;
@@ -51,6 +51,7 @@ var standardize = require( '@stdlib/_tools/package-json/standardize' );
5151
5252// VARIABLES //
5353
54+ var debug = logger ( 'update-package-os' ) ;
5455var OS = [
5556 'aix' ,
5657 'darwin' ,
@@ -61,7 +62,7 @@ var OS =[
6162 'sunos' ,
6263 'win32' ,
6364 'windows'
64- ]
65+ ] ;
6566var opts ;
6667var args ;
6768var dir ;
Original file line number Diff line number Diff line change 3939// MODULES //
4040
4141var proc = require ( 'process' ) ;
42- var debug = require ( 'debug' ) ( 'update-package-repository' ) ;
4342var join = require ( 'path' ) . join ;
4443var resolve = require ( 'path' ) . resolve ;
44+ var logger = require ( 'debug' ) ;
4545var parseArgs = require ( 'minimist' ) ;
4646var cwd = require ( '@stdlib/process/cwd' ) ;
4747var findPkgs = require ( '@stdlib/_tools/pkgs/find' ) . sync ;
@@ -51,6 +51,7 @@ var standardize = require( '@stdlib/_tools/package-json/standardize' );
5151
5252// VARIABLES //
5353
54+ var debug = logger ( 'update-package-repository' ) ;
5455var REPOSITORY = {
5556 'type' : 'git' ,
5657 'url' : 'git://github.com/stdlib-js/stdlib.git'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments