Skip to content

Commit

Permalink
updates, restructuring, move all 7z export methods to single file
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Dec 23, 2020
1 parent d319fd0 commit 1a60c5f
Show file tree
Hide file tree
Showing 40 changed files with 737 additions and 736 deletions.
4 changes: 2 additions & 2 deletions cli/7zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
* Dependencies.
*/
import minimist from 'minimist';
import platformBinary from '../util/binary.mjs';
import { Binary } from '../lib/utility.js';
import {
createRequire
} from 'module';

const require = createRequire(
import.meta.url);
const pack = require('../package.json'),
sevenBinary = platformBinary();
sevenBinary = Binary();

/*
* Arguments.
Expand Down
2 changes: 1 addition & 1 deletion cli/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
createArchive
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
deleteArchive,
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
extractArchive
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
fullArchive,
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
listArchive,
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/only.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
onlyArchive
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
renameArchive
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/sfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
createSfxMac,
createSfxLinux,
createSfxWindows
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
join
Expand Down
2 changes: 1 addition & 1 deletion cli/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
testArchive,
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
2 changes: 1 addition & 1 deletion cli/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
updateArchive
} from '../lib/index.mjs';
} from '../lib/index.js';
import minimist from 'minimist';
import {
createRequire
Expand Down
56 changes: 0 additions & 56 deletions lib/createArchive.mjs

This file was deleted.

6 changes: 3 additions & 3 deletions lib/createSfx.mjs → lib/createSfx.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import createArchive from './createArchive.mjs';
import { createArchive } from './index.js';
import when from 'when';
import {
fileURLToPath
Expand All @@ -11,7 +11,7 @@ import {
join
} from 'path';
import fs from 'fs-extra';
import { Binary } from './utility.mjs';
import { Binary } from './utility.js';

const platformTitle = {
win32: 'Windows OS',
Expand Down Expand Up @@ -116,7 +116,7 @@ archive.pipe(SfxDirectory, {
*
* @returns {Promise} Promise
*/
export default function (
export const createSfx = function (
name,
files,
destination = '',
Expand Down
34 changes: 0 additions & 34 deletions lib/deleteArchive.mjs

This file was deleted.

52 changes: 0 additions & 52 deletions lib/extractArchive.mjs

This file was deleted.

47 changes: 0 additions & 47 deletions lib/fullArchive.mjs

This file was deleted.

Loading

0 comments on commit 1a60c5f

Please sign in to comment.