Skip to content

Commit ef93d50

Browse files
committed
refactor: update script
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 39bf63d commit ef93d50

File tree

1 file changed

+3
-22
lines changed
  • lib/node_modules/@stdlib/_tools/scaffold/math-special-unary/scripts

1 file changed

+3
-22
lines changed

lib/node_modules/@stdlib/_tools/scaffold/math-special-unary/scripts/runner.js

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable max-lines */
22-
2321
'use strict';
2422

2523
// MODULES //
@@ -311,11 +309,6 @@ function main() {
311309
envs.push( 'TEST_DESC=\'' + escapeBashString( testDesc ) + '\'' );
312310
envs.push( 'DESC_LINK_TEXT=\'' + escapeBashString( desc ) + '\'' );
313311

314-
// Type information...
315-
envs.push( 'JAVASCRIPT_RETURN_TYPE=\'' + o.returns.type.javascript + '\'' );
316-
envs.push( 'C_OUTPUT_TYPE=\'' + o.returns.type.c + '\'' );
317-
envs.push( 'JSDOC_OUTPUT_TYPE=\'' + o.returns.type.jsdoc + '\'' );
318-
319312
// Example values and results...
320313
envs.push( jsExampleValues2x2EnvVar( param.example_values ) );
321314
scalarKernelPath = '@stdlib/math/base/special/' + o.alias;
@@ -351,25 +344,13 @@ function main() {
351344
envs.push( 'CASTING_POLICY=\'' + funcData.policies.casting + '\'' );
352345
}
353346

354-
// Add the TypeScript type variables (these functions need to be defined)...
347+
// Add the TypeScript type variables...
355348
envs.push( ndarrayImportTypesEnvVar( inputDtypes, outputDtypes ) );
356349
envs.push( inputNdarrayTypeEnvVar( inputDtypes ) );
357350
envs.push( outputNdarrayTypeEnvVar( outputDtypes ) );
358351

359-
// Add values for testing...
360-
envs.push( 'VALUES_LEN_2=\'' + param.example_values.slice( 0, 2 ).join( ', ' ) + '\'' );
361-
envs.push( 'EXPECTED_1=\'' + param.example_values[ 0 ] + '\'' );
362-
envs.push( 'EXPECTED_2=\'' + param.example_values[ 1 ] + '\'' );
363-
364-
// Generate the command and execute...
365-
log( 'Generated %d environment variables for %s', envs.length, alias );
366-
367-
// Use execSync with proper option handling
368-
cmd = envs.join( ' ' ) + ' bash ' + SCAFFOLD_SCRIPT;
369-
shell( cmd, {
370-
'encoding': 'utf8',
371-
'shell': '/bin/bash'
372-
});
352+
cmd = envs.join( ' ' ) + ' . ' + SCAFFOLD_SCRIPT;
353+
shell( cmd );
373354
}
374355
}
375356

0 commit comments

Comments
 (0)