Skip to content

Commit

Permalink
fix(types): fix static types
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 5, 2022
1 parent d02ad15 commit 9c2acb5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
coverage/
*.d.ts
*.ts
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class Smoker extends createStrictEventEmitterClass() {
this.emit(PACK_FAILED, error);
throw error;
}
/** @type {import('../static').NpmPackItem[]} */
/** @type {import('./static').NpmPackItem[]} */
let parsed;

const {stdout: packOutput} = value;
Expand Down Expand Up @@ -625,10 +625,10 @@ exports.smoke = async function smoke(scripts, opts = {}) {
};

/**
* @typedef {import('../static').SmokerOptions} SmokerOptions
* @typedef {import('../static').PackItem} PackItem
* @typedef {import('../static').PackOptions} PackOptions
* @typedef {import('../static').RunScriptResult} RunScriptResult
* @typedef {import('../static').Events} Events
* @typedef {import('../static').TSmokerEmitter} TSmokerEmitter
* @typedef {import('./static').SmokerOptions} SmokerOptions
* @typedef {import('./static').PackItem} PackItem
* @typedef {import('./static').PackOptions} PackOptions
* @typedef {import('./static').RunScriptResult} RunScriptResult
* @typedef {import('./static').Events} Events
* @typedef {import('./static').TSmokerEmitter} TSmokerEmitter
*/
6 changes: 3 additions & 3 deletions static.d.ts → src/static.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ExecaError, ExecaReturnValue, Options} from 'execa';
import {StrictEventEmitter} from 'strict-event-emitter-types';
import {EventEmitter} from 'events';
import type {ExecaError, ExecaReturnValue, Options} from 'execa';
import type {StrictEventEmitter} from 'strict-event-emitter-types';
import type {EventEmitter} from 'events';

/**
* JSON output of `npm pack`
Expand Down

0 comments on commit 9c2acb5

Please sign in to comment.