Skip to content

Commit

Permalink
Merge pull request #20 from lifeomic/deps
Browse files Browse the repository at this point in the history
feat: upgrade dependencies
  • Loading branch information
Shawn Zhu authored Mar 6, 2024
2 parents 6162225 + 7c9c0e7 commit 95045c1
Show file tree
Hide file tree
Showing 6 changed files with 370 additions and 216 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules
/test-input
/test-output
/coverage
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
},
"dependencies": {
"adm-zip": "^0.5.10",
"esbuild": "^0.17.10",
"esbuild": "^0.19.12",
"glob": "^8.1.0",
"yargs": "^17.7.1"
},
"devDependencies": {
"@aws-sdk/client-lambda": "^3.359.0",
"@lifeomic/eslint-config-standards": "^3.1.0",
"@lifeomic/eslint-config-standards": "^4.0.0",
"@lifeomic/typescript-config": "^3.0.0",
"@types/adm-zip": "^0.5.0",
"@types/glob": "^8.1.0",
Expand Down
1 change: 1 addition & 0 deletions src/bin/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node
import * as path from 'path';
import * as yargs from 'yargs';

import { bundle } from '../bundle';

const main = async () => {
Expand Down
9 changes: 5 additions & 4 deletions src/bundle.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
jest.mock('esbuild', () => ({ build: jest.fn() }));

import {
rmSync,
readdirSync,
writeFileSync,
mkdirSync,
readdirSync,
readFileSync,
rmSync,
writeFileSync,
} from 'fs';
import AdmZip = require('adm-zip');
import { bundle } from './bundle';
import { build } from 'esbuild';

import { bundle } from './bundle';

const TEST_INPUT_DIR = `${__dirname}/../test-input`;
const TEST_OUTPUT_DIR = `${__dirname}/../test-output`;

Expand Down
3 changes: 2 additions & 1 deletion src/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { build, BuildOptions as ESBuildOptions } from 'esbuild';
import * as glob from 'glob';
import AdmZip = require('adm-zip');
import { withTiming } from './util';
import { promises as fs } from 'fs';

import { withTiming } from './util';

export type BundleOptions = {
/**
* The entrypoint/s to bundle. This can be a glob pattern matching
Expand Down
Loading

0 comments on commit 95045c1

Please sign in to comment.