File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,4 +37,5 @@ include $(TOOLS_MAKE_LIB_DIR)/ls/pkgs/tools.mk
3737include $(TOOLS_MAKE_LIB_DIR ) /ls/pkgs/toposort.mk
3838include $(TOOLS_MAKE_LIB_DIR ) /ls/pkgs/tree.mk
3939include $(TOOLS_MAKE_LIB_DIR ) /ls/pkgs/types.mk
40+ include $(TOOLS_MAKE_LIB_DIR ) /ls/pkgs/unpublished.mk
4041include $(TOOLS_MAKE_LIB_DIR ) /ls/pkgs/wasm.mk
Original file line number Diff line number Diff line change 1+ # /
2+ # @license Apache-2.0
3+ #
4+ # Copyright (c) 2024 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+ # RULES #
20+
21+ # /
22+ # Prints a list of all unpublished standalone packages.
23+ #
24+ # @param {string} [LIST_PKGS_STANDALONES_DIR] - absolute path of the directory from which to search for packages (default: source directory)
25+ #
26+ # @example
27+ # make list-pkgs-unpublished
28+ #
29+ # @example
30+ # make list-pkgs-unpublished LIST_PKGS_STANDALONES_DIR="$PWD/lib/node_modules/\@stdlib/utils"
31+ # /
32+ list-pkgs-unpublished :
33+ $(QUIET ) pkgs=$$(make --no-print-directory list-pkgs-standalones | tr '\n' ' ' ) ; \
34+ unpublished_pkgs=" " ; \
35+ for pkg in $$ pkgs; do \
36+ if [ " $$ {pkg#*_tools}" != " $$ pkg" ]; then \
37+ continue ; \
38+ fi ; \
39+ if ! npm show $$ pkg version > /dev/null 2>&1 ; then \
40+ unpublished_pkgs=" $$ unpublished_pkgs $$ pkg" ; \
41+ fi ; \
42+ done ; \
43+ echo " $$ unpublished_pkgs"
44+
45+ .PHONY : list-pkgs-unpublished
You can’t perform that action at this time.
0 commit comments