Skip to content

Commit

Permalink
Removed file-system-access dev. dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Jan 8, 2025
1 parent 041a04c commit 02712c0
Show file tree
Hide file tree
Showing 5 changed files with 326 additions and 106 deletions.
110 changes: 15 additions & 95 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"@eslint/js": "^9.12.0",
"eslint": "^9.12.0",
"fake-indexeddb": "^6.0.0",
"file-system-access": "^1.0.4",
"globals": "^15.10.0",
"prettier": "^3.2.5",
"tsx": "^4.19.2",
Expand Down
7 changes: 2 additions & 5 deletions tests/setup-access.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import * as fsAccess from 'file-system-access';
import adapter from 'file-system-access/lib/adapters/memory.js';
Object.assign(globalThis, fsAccess);

import { handle } from './web-access.js';
import { configureSingle } from '@zenfs/core';
import { WebAccess } from '../src/access.js';
import { copy, data } from '@zenfs/core/tests/setup.js';

await configureSingle({
backend: WebAccess,
handle: await fsAccess.getOriginPrivateDirectory(adapter),
handle,
});

copy(data);
7 changes: 2 additions & 5 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"extends": "../tsconfig.json",
"type": "module",
"compilerOptions": {
"module": "NodeNext",
"target": "ES2022",
"noEmit": true,
"lib": ["ESNext", "ESNext.Disposable", "DOM"],
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true
"allowSyntheticDefaultImports": true
},
"extends": "../tsconfig.json",
"include": ["**/*.ts", "*.ts"]
}
Loading

0 comments on commit 02712c0

Please sign in to comment.