Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 20, 2024
1 parent 6871395 commit 148917d
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 8 deletions.
17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@
"repository": "fregante/chrome-webstore-upload-cli",
"funding": "https://github.com/sponsors/fregante",
"license": "MIT",
"author": "Andrew Levine",
"author": "Federico Brigante <me@fregante.com> (https://fregante.com)",
"contributors": [
"Federico Brigante <me@fregante.com> (https://fregante.com)"
"Andrew Levine"
],
"type": "module",
"bin": {
"chrome-webstore-upload": "cli.js"
"chrome-webstore-upload": "distribution/cli.js"
},
"scripts": {
"test": "xo && ava"
"test": "xo && ava",
"build": "tsc",
"watch": "tsc -w",
"prepack": "npm run build"
},
"xo": {
"ignore": [
Expand All @@ -50,17 +53,19 @@
"junk": "^4.0.1",
"meow": "^12.1.1",
"ora": "^7.0.1",
"recursive-readdir": "^2.2.3",
"yazl": "^2.5.1"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^5.0.0",
"@types/yazl": "^2.4.5",
"ava": "^6.0.1",
"execa": "^8.0.1",
"is-stream": "^3.0.0",
"mock-fs": "^5.2.0",
"typescript": "^5.3.3",
"xo": "^0.56.0"
},
"engines": {
"node": ">=18"
"node": ">=18.17"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions zipdir.js → source/zipdir.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { basename } from 'node:path';
import { readdir } from 'node:fs/promises';
import { isNotJunk } from 'junk';
import yazl from 'yazl';
import recursiveDir from 'recursive-readdir';
import { zipPath } from './util.js';

export default async function zipStreamFromDir(dir) {
const files = await recursiveDir(dir);
const files = await readdir(dir, { recursive: true });
;
const zip = new yazl.ZipFile();
let hasManifest = false;
for (const file of files) {
Expand Down
9 changes: 9 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"outDir": "distribution"
},
"include": [
"source"
]
}

0 comments on commit 148917d

Please sign in to comment.