Skip to content

Commit

Permalink
api: Pass on the script name to the API. (sitespeedio#3845)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored May 16, 2023
1 parent cfebd66 commit 45cce6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/sitespeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { writeFileSync } from 'node:fs';
import { execSync } from 'node:child_process';
import { platform } from 'node:os';
import { resolve } from 'node:path';
import { resolve, basename } from 'node:path';
import { readFileSync } from 'node:fs';

import merge from 'lodash.merge';
Expand Down Expand Up @@ -36,6 +36,7 @@ async function api(options) {
new URL(resolve(process.cwd(), options._[0]), import.meta.url)
);
apiOptions.api.scripting = scripting.toString();
apiOptions.api.scriptingName = basename(options._[0]);
}

if (apiOptions.mobile) {
Expand Down

0 comments on commit 45cce6c

Please sign in to comment.