feat(archive): introduce ts_shared browser-compatible layer, refactor Node-specific tools to wrap/shared implementations, and modernize archive handling
This commit is contained in:
22
ts_shared/plugins.ts
Normal file
22
ts_shared/plugins.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// Browser-compatible plugins for ts_shared
|
||||
// NO Node.js imports allowed here
|
||||
|
||||
// @push.rocks scope (browser-compatible)
|
||||
import * as smartdelay from '@push.rocks/smartdelay';
|
||||
import * as smartpromise from '@push.rocks/smartpromise';
|
||||
import * as smartstream from '@push.rocks/smartstream';
|
||||
import * as smartfile from '@push.rocks/smartfile';
|
||||
|
||||
export {
|
||||
smartdelay,
|
||||
smartpromise,
|
||||
smartstream,
|
||||
smartfile,
|
||||
};
|
||||
|
||||
// third party scope (browser-compatible)
|
||||
import * as fileType from 'file-type';
|
||||
import * as fflate from 'fflate';
|
||||
import * as modernTar from 'modern-tar';
|
||||
|
||||
export { fileType, fflate, modernTar };
|
||||
Reference in New Issue
Block a user