diff --git a/package-lock.json b/package-lock.json index cf16400..628e071 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,7 @@ }, "devDependencies": { "@eslint/js": "^9.12.0", - "@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@types/emscripten": "^1.39.13", - "esbuild": "^0.17.18", "eslint": "^9.12.0", "globals": "^15.10.0", "prettier": "^3.2.5", @@ -38,21 +36,6 @@ "node": ">=0.10.0" } }, - "node_modules/@esbuild/linux-x64": { - "version": "0.17.19", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "dev": true, @@ -220,12 +203,6 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@fal-works/esbuild-plugin-global-externals": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@fal-works/esbuild-plugin-global-externals/-/esbuild-plugin-global-externals-2.1.2.tgz", - "integrity": "sha512-cEee/Z+I12mZcFJshKcCqC8tuX5hG3s+d+9nZ3LabqKF1vKdF41B92pJVCBggjAGORAeOzyyDDKrZwIkLffeOQ==", - "dev": true - }, "node_modules/@humanfs/core": { "version": "0.19.0", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.0.tgz", @@ -954,42 +931,6 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/esbuild": { - "version": "0.17.19", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.17.19", - "@esbuild/android-arm64": "0.17.19", - "@esbuild/android-x64": "0.17.19", - "@esbuild/darwin-arm64": "0.17.19", - "@esbuild/darwin-x64": "0.17.19", - "@esbuild/freebsd-arm64": "0.17.19", - "@esbuild/freebsd-x64": "0.17.19", - "@esbuild/linux-arm": "0.17.19", - "@esbuild/linux-arm64": "0.17.19", - "@esbuild/linux-ia32": "0.17.19", - "@esbuild/linux-loong64": "0.17.19", - "@esbuild/linux-mips64el": "0.17.19", - "@esbuild/linux-ppc64": "0.17.19", - "@esbuild/linux-riscv64": "0.17.19", - "@esbuild/linux-s390x": "0.17.19", - "@esbuild/linux-x64": "0.17.19", - "@esbuild/netbsd-x64": "0.17.19", - "@esbuild/openbsd-x64": "0.17.19", - "@esbuild/sunos-x64": "0.17.19", - "@esbuild/win32-arm64": "0.17.19", - "@esbuild/win32-ia32": "0.17.19", - "@esbuild/win32-x64": "0.17.19" - } - }, "node_modules/escape-string-regexp": { "version": "4.0.0", "dev": true, diff --git a/package.json b/package.json index 60937c7..aac2e0f 100644 --- a/package.json +++ b/package.json @@ -36,17 +36,15 @@ "scripts": { "format": "prettier --write .", "format:check": "prettier --check .", - "lint": "tsc -p tsconfig.json --noEmit && eslint src", - "build": "npx build --package=@zenfs/core --globalName ZenFS_Emscripten --entry src/index.ts --", + "lint": "eslint src", + "build": "tsc -p tsconfig.json", "build:docs": "typedoc --out docs --name 'ZenFS Emscripten' src/index.ts", "prepublishOnly": "npm run build", "test": "echo No tests yet" }, "devDependencies": { "@eslint/js": "^9.12.0", - "@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@types/emscripten": "^1.39.13", - "esbuild": "^0.17.18", "eslint": "^9.12.0", "globals": "^15.10.0", "prettier": "^3.2.5", diff --git a/readme.md b/readme.md index f5dc933..9cf6fa9 100644 --- a/readme.md +++ b/readme.md @@ -23,7 +23,7 @@ npm install @zenfs/emscripten > [!NOTE] > The examples are written in ESM. > For CJS, you can `require` the package. -> For a browser environment without support for `type=module` in `script` tags, you can add a `script` tag to your HTML pointing to the `browser.min.js` and use the global `ZenFS_Emscripten` object. +> If using a browser environment, you can use a `