Previously all APIs were available through the top-level index.ts, but now the zkgroup APIs are in their own module. To access that in the old packaging required writing
import * from '@signalapp/signal-client/node/dist/zkgroup'
This commit moves the package root into the node/ directory to eliminate the 'node/' component, then adds a top-level, precompiled zkgroup.js/.d.ts so that clients can use
import * from '@signalapp/signal-client/zkgroup'
In addition, this PR improves the source tree by collapsing Native.d.ts and NativeImpl.ts, by turning the latter into Native.js instead. Finally, it moves the TypeScript sources that need compilation into a subdirectory ts/ so that relative paths to the root directory are consistent between the source and the compiled code.
Previously all APIs were available through the top-level index.ts, but now the zkgroup APIs are in their own module. To access that in the old packaging required writing
This commit moves the package root into the node/ directory to eliminate the 'node/' component, then adds a top-level, precompiled zkgroup.js/.d.ts so that clients can use
In addition, this PR improves the source tree by collapsing Native.d.ts and NativeImpl.ts, by turning the latter into Native.js instead. Finally, it moves the TypeScript sources that need compilation into a subdirectory ts/ so that relative paths to the root directory are consistent between the source and the compiled code.