Skip to content

Commit

Permalink
Changed to using core build
Browse files Browse the repository at this point in the history
Removed ignore paths in eslintrc
  • Loading branch information
james-pre committed Apr 8, 2024
1 parent 22290ab commit bcb1d54
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 75 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-namespace": "warn"
},
"ignorePatterns": ["scripts/*.js", "src/*.config.js", "test/fixtures"],
"plugins": ["@typescript-eslint"]
}
36 changes: 27 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "tsc -p tsconfig.json --noEmit && eslint src",
"build": "node scripts/build.mjs",
"build": "npx build --package=@zenfs/core --globalName ZenFS_DOM --entry src/index.ts",
"build:docs": "typedoc --out docs --name 'ZenFS DOM' src/index.ts",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"esbuild": "^0.17.18",
Expand All @@ -52,6 +53,6 @@
"typescript": "5.2.2"
},
"peerDependencies": {
"@zenfs/core": "^0.5.5"
"@zenfs/core": "^0.5.10"
}
}
49 changes: 0 additions & 49 deletions scripts/build.mjs

This file was deleted.

7 changes: 2 additions & 5 deletions src/FileSystemAccess.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import type { Backend, FileSystemMetadata } from '@zenfs/core';
import { ApiError, Async, ErrorCode, FileSystem, FileType, PreloadFile, Stats } from '@zenfs/core';
import { basename, dirname, join } from '@zenfs/core/emulation/path.js';
import { ApiError, ErrorCode } from '@zenfs/core/ApiError.js';
import { PreloadFile } from '@zenfs/core/file.js';
import { FileSystem, Async, type FileSystemMetadata } from '@zenfs/core/filesystem.js';
import { Stats, FileType } from '@zenfs/core/stats.js';
import type { Backend } from '@zenfs/core/backends/backend.js';

declare global {
interface FileSystemDirectoryHandle {
Expand Down
6 changes: 2 additions & 4 deletions src/IndexedDB.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { AsyncTransaction, AsyncStore, AsyncStoreFS } from '@zenfs/core/backends/AsyncStore.js';
import { ApiError, ErrorCode } from '@zenfs/core/ApiError.js';
import type { Backend } from '@zenfs/core/backends/backend.js';
import type { Ino } from '@zenfs/core/inode.js';
import type { Backend, Ino } from '@zenfs/core';
import { AsyncTransaction, AsyncStore, AsyncStoreFS, ApiError, ErrorCode } from '@zenfs/core';

/**
* Converts a DOMException or a DOMError from an IndexedDB event into a
Expand Down
7 changes: 2 additions & 5 deletions src/Storage.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { SyncStore, SimpleSyncStore, SimpleSyncTransaction, SyncStoreFS } from '@zenfs/core/backends/SyncStore.js';
import { ApiError, ErrorCode } from '@zenfs/core/ApiError.js';
import { type Backend } from '@zenfs/core/backends/backend.js';
import { decode, encode } from '@zenfs/core/utils.js';
import type { Ino } from '@zenfs/core/inode.js';
import type { Backend, Ino } from '@zenfs/core';
import { SyncStore, SimpleSyncStore, SimpleSyncTransaction, SyncStoreFS, ApiError, ErrorCode, encode, decode } from '@zenfs/core';

/**
* A synchronous key-value store backed by Storage.
Expand Down

0 comments on commit bcb1d54

Please sign in to comment.