@zenfs/core 0.5.9 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/scripts/build.js +4 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "A filesystem in your browser",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist",
@@ -46,7 +46,7 @@
46
46
  "format:check": "prettier --check .",
47
47
  "lint": "eslint src tests && tsc -p tsconfig.json --noEmit",
48
48
  "test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
49
- "build": "node scripts/build.js --globalName=ZenFS src/index.ts",
49
+ "build": "node scripts/build.js --globalName=ZenFS --entry src/index.ts",
50
50
  "build:docs": "typedoc --out docs --name ZenFS src/index.ts",
51
51
  "dev": "npm run build -- --watch",
52
52
  "prepublishOnly": "npm run build"
package/scripts/build.js CHANGED
@@ -7,19 +7,17 @@ import { globalExternals } from '@fal-works/esbuild-plugin-global-externals';
7
7
 
8
8
  let buildCount = 0;
9
9
 
10
- const {
11
- values: { watch, keep, quiet, globalName },
12
- positionals: entryPoints,
13
- } = parseArgs({
10
+ const { watch, keep, quiet, globalName, entry } = parseArgs({
14
11
  options: {
15
12
  watch: { short: 'w', type: 'boolean', default: false },
16
13
  keep: { short: 'k', type: 'boolean', default: false },
17
14
  quiet: { short: 'q', type: 'boolean', default: false },
18
15
  globalName: { type: 'string' },
16
+ entry: { type: 'string' },
19
17
  },
20
18
  strict: false,
21
19
  allowPositionals: true,
22
- });
20
+ }).values;
23
21
 
24
22
  async function exportsOf(name) {
25
23
  try {
@@ -42,7 +40,7 @@ function start() {
42
40
  }
43
41
 
44
42
  const config = {
45
- entryPoints,
43
+ entryPoints: [entry],
46
44
  target: 'esnext',
47
45
  globalName,
48
46
  outfile: 'dist/browser.min.js',