|
18 | 18 | * limitations under the License.
|
19 | 19 | */
|
20 | 20 |
|
21 |
| -/* eslint-disable max-lines */ |
22 |
| - |
23 | 21 | 'use strict';
|
24 | 22 |
|
25 | 23 | // MODULES //
|
@@ -311,11 +309,6 @@ function main() {
|
311 | 309 | envs.push( 'TEST_DESC=\'' + escapeBashString( testDesc ) + '\'' );
|
312 | 310 | envs.push( 'DESC_LINK_TEXT=\'' + escapeBashString( desc ) + '\'' );
|
313 | 311 |
|
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 |
| - |
319 | 312 | // Example values and results...
|
320 | 313 | envs.push( jsExampleValues2x2EnvVar( param.example_values ) );
|
321 | 314 | scalarKernelPath = '@stdlib/math/base/special/' + o.alias;
|
@@ -351,25 +344,13 @@ function main() {
|
351 | 344 | envs.push( 'CASTING_POLICY=\'' + funcData.policies.casting + '\'' );
|
352 | 345 | }
|
353 | 346 |
|
354 |
| - // Add the TypeScript type variables (these functions need to be defined)... |
| 347 | + // Add the TypeScript type variables... |
355 | 348 | envs.push( ndarrayImportTypesEnvVar( inputDtypes, outputDtypes ) );
|
356 | 349 | envs.push( inputNdarrayTypeEnvVar( inputDtypes ) );
|
357 | 350 | envs.push( outputNdarrayTypeEnvVar( outputDtypes ) );
|
358 | 351 |
|
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 ); |
373 | 354 | }
|
374 | 355 | }
|
375 | 356 |
|
|
0 commit comments