Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
kgryte committed Sep 24, 2023
2 parents 277bfbc + 09e7788 commit 86f3be7
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 15 deletions.
30 changes: 18 additions & 12 deletions lib/node_modules/@stdlib/_tools/scripts/publish_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,19 +1046,25 @@ function publish( pkg, clbk ) {
deps.push( '@stdlib/error-tools-fmtprodmsg' );
}

// Transform error messages and save files to `dist` subdirectory:
command = 'mkdir dist';
shell( command, opts );
command = [
'npx esbuild lib/index.js --bundle --format=cjs --target=es5',
'--sourcemap --minify --platform=node --outfile=dist/index.js',
'--external:'+deps.join( ' --external:' )
].join( ' ' );
debug( 'Executing command: %s', command );
shell( command, opts );
command = 'rm -rf tmp';
shell( command, opts );
// Minify, bundle, and save files to `dist` subdirectory:
try {
command = 'mkdir dist';
shell( command, opts );
command = [
'npx esbuild lib/index.js --bundle --format=cjs --target=es5',
'--sourcemap --minify --platform=node --outfile=dist/index.js',
'--external:'+deps.join( ' --external:' )
].join( ' ' );
debug( 'Executing command: %s', command );
shell( command, opts );
} catch ( error ) {
debug( 'Encountered an error when attempting to bundle the package: %s', error.message );

// Copy all source files to the `dist` subdirectory to proceed without bundling:
command = 'cp -r lib/* dist';
shell( command, opts );
}
// Apply code transformations:
jscodeshift = join( rootDir(), 'node_modules', '.bin', 'jscodeshift' );
command = 'STDLIB_INPUT_SOURCE_MAP=\'./dist/index.js.map\' STDLIB_PKG=\'@stdlib/'+distPkg+'\' '+jscodeshift+' ./dist/index.js -t '+join( __dirname, 'transform.js' );
debug( 'Executing command: %s', command );
Expand Down
5 changes: 5 additions & 0 deletions lib/node_modules/@stdlib/error/tools/database/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -915,3 +915,8 @@
"Ek","invalid argument. A subsequence string must have a non-zero increment. Value: `%s`.","RangeError"
"El","invalid argument. The subsequence string resolves to a slice which exceeds index bounds. Value: `%s`.","RangeError"
"Em","invalid argument. Provided arguments must be either a Slice, integer, null, or undefined. Argument: `%d`. Value: `%s`.","TypeError"
"En","invalid operation. Unsupported slice operation. Value: `%s`.","Error"
"Eo","invalid operation. Number of array dimensions does not match the number of slice dimensions. Array shape: (%s). Slice dimensions: %u.","RangeError"
"Ep","invalid operation. Slice exceeds array bounds. Array shape: (%s).","RangeError"
"Eq","invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.","Error"
"Er","invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.","Error"

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions lib/node_modules/@stdlib/error/tools/id2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3318,6 +3318,8 @@
"1dZ",@stdlib/ndarray-empty-like
"1da",@stdlib/ndarray/empty
"1db",@stdlib/ndarray-empty
"1j6",@stdlib/ndarray/fancy
"1j7",@stdlib/ndarray-fancy
"0ju",@stdlib/ndarray/from-scalar
"0jv",@stdlib/ndarray-from-scalar
"0jw",@stdlib/ndarray/ind2sub
Expand Down Expand Up @@ -4005,10 +4007,20 @@
"0ta",@stdlib/simulate/iter/triangle-wave
"0tb",@stdlib/simulate-iter-triangle-wave
"0td",@stdlib/simulate
"1j8",@stdlib/slice/base/length
"1j9",@stdlib/slice-base-length
"1jA",@stdlib/slice/base/normalize-multi-slice
"1jB",@stdlib/slice-base-normalize-multi-slice
"1jC",@stdlib/slice/base/normalize-slice
"1jD",@stdlib/slice-base-normalize-slice
"1io",@stdlib/slice/base
"1ip",@stdlib/slice-base
"1jE",@stdlib/slice/base/seq2multislice
"1jF",@stdlib/slice-base-seq2multislice
"1iq",@stdlib/slice/base/seq2slice
"1ir",@stdlib/slice-base-seq2slice
"1jG",@stdlib/slice/base/shape
"1jH",@stdlib/slice-base-shape
"1is",@stdlib/slice/base/slice2seq
"1it",@stdlib/slice-base-slice2seq
"1iu",@stdlib/slice/base/str2multislice
Expand Down Expand Up @@ -5909,6 +5921,12 @@
"1gN",@stdlib/string-base-remove-first-grapheme-cluster
"1gO",@stdlib/string/base/remove-first
"1gP",@stdlib/string-base-remove-first
"1jI",@stdlib/string/base/remove-last-code-point
"1jJ",@stdlib/string-base-remove-last-code-point
"1jK",@stdlib/string/base/remove-last-grapheme-cluster
"1jL",@stdlib/string-base-remove-last-grapheme-cluster
"1jM",@stdlib/string/base/remove-last
"1jN",@stdlib/string-base-remove-last
"1gQ",@stdlib/string/base/repeat
"1gR",@stdlib/string-base-repeat
"1gS",@stdlib/string/base/replace-before
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/error/tools/id2pkg/data/data.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions lib/node_modules/@stdlib/error/tools/pkg2id/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6596,3 +6596,21 @@
"@stdlib/slice",1j3
"@stdlib/slice/seq2slice",1j4
"@stdlib/slice-seq2slice",1j5
"@stdlib/ndarray/fancy",1j6
"@stdlib/ndarray-fancy",1j7
"@stdlib/slice/base/length",1j8
"@stdlib/slice-base-length",1j9
"@stdlib/slice/base/normalize-multi-slice",1jA
"@stdlib/slice-base-normalize-multi-slice",1jB
"@stdlib/slice/base/normalize-slice",1jC
"@stdlib/slice-base-normalize-slice",1jD
"@stdlib/slice/base/seq2multislice",1jE
"@stdlib/slice-base-seq2multislice",1jF
"@stdlib/slice/base/shape",1jG
"@stdlib/slice-base-shape",1jH
"@stdlib/string/base/remove-last-code-point",1jI
"@stdlib/string-base-remove-last-code-point",1jJ
"@stdlib/string/base/remove-last-grapheme-cluster",1jK
"@stdlib/string-base-remove-last-grapheme-cluster",1jL
"@stdlib/string/base/remove-last",1jM
"@stdlib/string-base-remove-last",1jN
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/error/tools/pkg2id/data/data.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"benchmark": "./benchmark",
"doc": "./docs",
"example": "./examples",
"include": "./include",
"lib": "./lib",
"src": "./src",
"test": "./test"
},
"types": "./docs/types",
Expand Down
2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/ceiln/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"benchmark": "./benchmark",
"doc": "./docs",
"example": "./examples",
"include": "./include",
"lib": "./lib",
"src": "./src",
"test": "./test"
},
"types": "./docs/types",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"benchmark": "./benchmark",
"doc": "./docs",
"example": "./examples",
"include": "./include",
"lib": "./lib",
"src": "./src",
"test": "./test"
},
"types": "./docs/types",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"benchmark": "./benchmark",
"doc": "./docs",
"example": "./examples",
"include": "./include",
"lib": "./lib",
"src": "./src",
"test": "./test"
},
"types": "./docs/types",
Expand Down

0 comments on commit 86f3be7

Please sign in to comment.