@mservices-tech/scripts 3.2.3-scripts-release-refactor-rc.0 → 3.2.3-scripts-release-refactor-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/buildUsingEsbuild/buildUsingEsbuild.js +32 -33
- package/copy_package_build_to_project/copy_package_build_to_project.sh +1 -1
- package/generateIndexFilesFromTemplate/generateIndexFilesFromTemplate.js +116 -117
- package/package.json +1 -1
- package/removeGitHashesFromMarkdownFile/removeGitHashesFromMarkdownFile.js +32 -33
- package/runShellScript/runShellScript.js +32 -33
- package/testIncorrectValues/testIncorrectValues.js +35 -35
- package/utils.sh +3 -3
package/utils.sh
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Usage (assuming the script is located in 'scripts' subdirectory
|
|
5
5
|
# of the project, where package is installed):
|
|
6
6
|
#
|
|
7
|
-
# source "$(dirname "$0")/../node_modules/@
|
|
7
|
+
# source "$(dirname "$0")/../node_modules/@mservices-tech/scripts/utils.sh" || exit 1
|
|
8
8
|
# by default the script will look for esbuild in './node_modules/.bin/esbuild'
|
|
9
9
|
# you can change it by setting ESBUILD_BINARY variable
|
|
10
10
|
# export ESBUILD_BINARY='./node_modules/.bin/esbuild'
|
|
@@ -164,7 +164,7 @@ function transpile() {
|
|
|
164
164
|
esbuild*)
|
|
165
165
|
# Note: 'prettier' is always an external dependency when transpiling
|
|
166
166
|
# using esbuild. Prettier API is used in writeFileFormatted
|
|
167
|
-
# and writeFileSyncFormatted functions from @
|
|
167
|
+
# and writeFileSyncFormatted functions from @mservices-tech/utils package.
|
|
168
168
|
# Without defining Prettier as external dependency, esbuild cannot
|
|
169
169
|
# properly bundle scripts using Prettier API to CommonJS format.
|
|
170
170
|
#
|
|
@@ -195,7 +195,7 @@ function transpile() {
|
|
|
195
195
|
# inspired by: https://stackoverflow.com/a/55556407/963881
|
|
196
196
|
#
|
|
197
197
|
# usage:
|
|
198
|
-
# source ./node_modules/@
|
|
198
|
+
# source ./node_modules/@mservices-tech/scripts/utils.sh && token_set <name> <keys> - <values>
|
|
199
199
|
#
|
|
200
200
|
# iterating over values: '${<name>[@]}'
|
|
201
201
|
# iterating over keys: '${!<name>[@]}'
|