Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
fix: Default imports (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian authored Oct 18, 2019
1 parent cf6dcfb commit 04e532b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
11 changes: 5 additions & 6 deletions src/PublishFlat.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as os from 'os';
import * as path from 'path';

import spawnAsync from '@expo/spawn-async';
import * as fs from 'fs-extra';
import * as logdown from 'logdown';
import * as packlist from 'npm-packlist';
import fs from 'fs-extra';
import logdown from 'logdown';
import packlist from 'npm-packlist';
import os from 'os';
import path from 'path';

export interface PublishOptions {
/** Which directory to flatten (e.g. to move dist/main.js => main.js, use `dist`) */
Expand Down
6 changes: 3 additions & 3 deletions src/cli-copy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node

import * as program from 'commander';
import * as fs from 'fs-extra';
import * as path from 'path';
import program from 'commander';
import fs from 'fs-extra';
import path from 'path';

import {copyJson} from './copyJson';

Expand Down
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

import * as program from 'commander';
import getRemainingArgs = require('commander-remaining-args');
import * as fs from 'fs-extra';
import * as path from 'path';
import program from 'commander';
import getRemainingArgs from 'commander-remaining-args';
import fs from 'fs-extra';
import path from 'path';

import {PublishFlat} from './PublishFlat';

Expand Down
4 changes: 2 additions & 2 deletions src/copyJson.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs-extra';
import * as path from 'path';
import fs from 'fs-extra';
import path from 'path';

async function checkFile(filePath: string): Promise<void> {
try {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"alwaysStrict": true,
"declaration": true,
"forceConsistentCasingInFileNames": true,
Expand Down

0 comments on commit 04e532b

Please sign in to comment.