Skip to content

Commit 1b8a989

Browse files
committed
Update scripts
1 parent 5063ceb commit 1b8a989

File tree

4 files changed

+26
-101
lines changed

4 files changed

+26
-101
lines changed

lib/node_modules/@stdlib/_tools/package-json/scripts/update_names

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
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;
2039
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
2140
var SEP = require( '@stdlib/constants/path/sep' );
2241
var findPkgs = require( '@stdlib/_tools/pkgs/find' ).sync;
42+
var rootDir = require( '@stdlib/_tools/utils/root-dir' );
2343

2444

2545
// VARIABLES //
2646

2747
var 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 //

lib/node_modules/@stdlib/_tools/package-json/scripts/update_os

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
// MODULES //
4040

4141
var proc = require( 'process' );
42-
var debug = require( 'debug' )( 'update-package-os' );
4342
var join = require( 'path' ).join;
4443
var resolve = require( 'path' ).resolve;
44+
var logger = require( 'debug' );
4545
var parseArgs = require( 'minimist' );
4646
var cwd = require( '@stdlib/process/cwd' );
4747
var 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' );
5455
var OS =[
5556
'aix',
5657
'darwin',
@@ -61,7 +62,7 @@ var OS =[
6162
'sunos',
6263
'win32',
6364
'windows'
64-
]
65+
];
6566
var opts;
6667
var args;
6768
var dir;

lib/node_modules/@stdlib/_tools/package-json/scripts/update_repository

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
// MODULES //
4040

4141
var proc = require( 'process' );
42-
var debug = require( 'debug' )( 'update-package-repository' );
4342
var join = require( 'path' ).join;
4443
var resolve = require( 'path' ).resolve;
44+
var logger = require( 'debug' );
4545
var parseArgs = require( 'minimist' );
4646
var cwd = require( '@stdlib/process/cwd' );
4747
var 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' );
5455
var REPOSITORY = {
5556
'type': 'git',
5657
'url': 'git://github.com/stdlib-js/stdlib.git'

lib/node_modules/@stdlib/_tools/package-json/scripts/update_tools_names

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)