Skip to content

Commit 037c1c2

Browse files
committed
refactor: don't put default args to own file
1 parent faec70b commit 037c1c2

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"type-check:watch": "npm run type-check -- --watch"
2424
},
2525
"files": [
26-
"lib",
27-
"bin"
26+
"lib"
2827
],
2928
"main": "src/index.js",
3029
"keywords": [],

src/args.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/index.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import {unpack} from '@shelf/aws-lambda-brotli-unpacker';
22
import {execSync} from 'child_process';
33
import {cleanupTempFiles} from './cleanup';
4-
import defaultArgsJSON from './args.json';
54

6-
export const defaultArgs = defaultArgsJSON;
5+
export const defaultArgs = [
6+
'--headless',
7+
'--invisible',
8+
'--nodefault',
9+
'--view',
10+
'--nolockcheck',
11+
'--nologo',
12+
'--norestore'
13+
];
714

815
const INPUT_PATH = '/opt/lo.tar.br';
916
const OUTPUT_PATH = '/tmp/instdir/program/soffice';

0 commit comments

Comments
 (0)