Skip to content

Commit 7573c2c

Browse files
committed
Auto-generated commit
1 parent 3f56f0c commit 7573c2c

File tree

7 files changed

+9
-57
lines changed

7 files changed

+9
-57
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2021 The Stdlib Authors.
4+
# Copyright (c) 2023 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@ jobs:
4646
publish:
4747

4848
# Define display name:
49-
name: 'Publish package to npm'
49+
name: 'Publish top-level package to npm'
5050

5151
# Define the type of virtual host machine on which to run the job:
5252
runs-on: ubuntu-latest
@@ -103,54 +103,6 @@ jobs:
103103
SLUG=${{ github.repository }}
104104
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" --follow-tags
105105
106-
# Remove CLI:
107-
- name: 'Remove CLI'
108-
if: ${{ github.ref == 'refs/heads/main' }}
109-
run: |
110-
# Exit if the package does not have a CLI:
111-
if ! grep -q '"bin":' package.json; then
112-
exit 0
113-
fi
114-
rm -rf ./bin/cli
115-
rm -f test/test.cli.js
116-
rm -f etc/cli_opts.json
117-
rm -f docs/usage.txt
118-
119-
# For all dependencies, check in all *.js files if they are still used; if not, remove them:
120-
jq -r '.dependencies | keys[]' ./package.json | while read -r dep; do
121-
dep=$(echo "$dep" | xargs)
122-
if ! grep -q "$dep" lib/** && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
123-
jq --indent 2 "del(.dependencies[\"$dep\"])" ./package.json > ./package.json.tmp
124-
mv ./package.json.tmp ./package.json
125-
fi
126-
done
127-
jq -r '.devDependencies | keys[]' ./package.json | while read -r dep; do
128-
if [[ "$dep" != "@stdlib"* ]]; then
129-
continue
130-
fi
131-
dep=$(echo "$dep" | xargs)
132-
if ! grep -q "$dep" lib/** && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
133-
jq --indent 2 "del(.devDependencies[\"$dep\"])" ./package.json > ./package.json.tmp
134-
mv ./package.json.tmp ./package.json
135-
fi
136-
done
137-
138-
# Remove CLI section:
139-
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?<section class=\"cli\">[\s\S]+?<\!\-\- \/.cli \-\->//"
140-
141-
# Remove CLI from package.json:
142-
jq -r 'del(.bin)' package.json > package.json.tmp
143-
mv package.json.tmp package.json
144-
145-
# Add entry for CLI package to See Also section of README.md:
146-
cliPkgName=$(jq -r '.name' package.json)-cli
147-
escapedPkg=$(echo "$cliPkgName" | sed -e 's/\//\\\//g')
148-
escapedPkg=$(echo "$escapedPkg" | sed -e 's/\@/\\\@/g')
149-
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"related\">(?:\n\n\* \* \*\n\n## See Also\n\n)?/<section class=\"related\">\n\n## See Also\n\n- <span class=\"package-name\">[\`$escapedPkg\`][$escapedPkg]<\/span><span class=\"delimiter\">: <\/span><span class=\"description\">CLI package for use as a command-line utility.<\/span>\n/"
150-
151-
# Add link definition for CLI package to README.md:
152-
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"links\">/<section class=\"links\">\n\n[$escapedPkg]: https:\/\/www.npmjs.com\/package\/$escapedPkg/"
153-
154106
# Replace GitHub MathJax equations with SVGs:
155107
- name: 'Replace GitHub MathJax equations with SVGs'
156108
run: |

CONTRIBUTORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
2929
Philipp Burckhardt <pburckhardt@outlook.com>
3030
Pranav Goswami <goswami.4@iitj.ac.in>
3131
Ricky Reusser <rsreusser@gmail.com>
32+
Robert Gislason <gztown2216@yahoo.com>
3233
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
3334
Ryan Seal <splrk@users.noreply.github.com>
3435
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
@@ -37,4 +38,3 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
3738
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
3839
orimiles5 <97595296+orimiles5@users.noreply.github.com>
3940
rei2hu <reimu@reimu.ws>
40-
Robert Gislason <gztown2216@yahoo.com>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
163163
[npm-image]: http://img.shields.io/npm/v/@stdlib/process.svg
164164
[npm-url]: https://npmjs.org/package/@stdlib/process
165165

166-
[test-image]: https://github.com/stdlib-js/process/actions/workflows/test.yml/badge.svg?branch=v0.1.1
167-
[test-url]: https://github.com/stdlib-js/process/actions/workflows/test.yml?query=branch:v0.1.1
166+
[test-image]: https://github.com/stdlib-js/process/actions/workflows/test.yml/badge.svg?branch=main
167+
[test-url]: https://github.com/stdlib-js/process/actions/workflows/test.yml?query=branch:main
168168

169169
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/process/main.svg
170170
[coverage-url]: https://codecov.io/github/stdlib-js/process?branch=main

argv/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ import ARGV = require( './index' );
2323

2424
// The variable is a string array...
2525
{
26-
// tslint:disable-next-line:no-unused-expression
26+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
2727
ARGV; // $ExpectType string[]
2828
}

env/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ import ENV = require( './index' );
2323

2424
// The variable is an object...
2525
{
26-
// tslint:disable-next-line:no-unused-expression
26+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
2727
ENV; // $ExpectType Object
2828
}

exec-path/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ import EXEC_PATH = require( './index' );
2323

2424
// The variable is a string...
2525
{
26-
// tslint:disable-next-line:no-unused-expression
26+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
2727
EXEC_PATH; // $ExpectType string
2828
}

node-version/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ import NODE_VERSION = require( './index' );
2323

2424
// The variable is a string...
2525
{
26-
// tslint:disable-next-line:no-unused-expression
26+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
2727
NODE_VERSION; // $ExpectType string
2828
}

0 commit comments

Comments
 (0)