mirror of https://codeberg.org/pzp/pzp-sync.git
improve package.json files and exports
This commit is contained in:
parent
39c6fd00a2
commit
80168f77cc
|
@ -12,9 +12,13 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"*.js",
|
"*.js",
|
||||||
"lib/*.js",
|
"lib/*.js"
|
||||||
"compat/*.js"
|
|
||||||
],
|
],
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"require": "./lib/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=16"
|
||||||
|
|
|
@ -12,7 +12,7 @@ const { generateKeypair } = require('./util')
|
||||||
const createPeer = SecretStack({ appKey: caps.shs })
|
const createPeer = SecretStack({ appKey: caps.shs })
|
||||||
.use(require('ppppp-db'))
|
.use(require('ppppp-db'))
|
||||||
.use(require('ssb-box'))
|
.use(require('ssb-box'))
|
||||||
.use(require('../'))
|
.use(require('../lib'))
|
||||||
|
|
||||||
const ALICE_DIR = path.join(os.tmpdir(), 'dagsync-alice')
|
const ALICE_DIR = path.join(os.tmpdir(), 'dagsync-alice')
|
||||||
const BOB_DIR = path.join(os.tmpdir(), 'dagsync-bob')
|
const BOB_DIR = path.join(os.tmpdir(), 'dagsync-bob')
|
||||||
|
|
|
@ -10,7 +10,7 @@ const { generateKeypair } = require('./util')
|
||||||
const createSSB = SecretStack({ appKey: caps.shs })
|
const createSSB = SecretStack({ appKey: caps.shs })
|
||||||
.use(require('ppppp-db'))
|
.use(require('ppppp-db'))
|
||||||
.use(require('ssb-box'))
|
.use(require('ssb-box'))
|
||||||
.use(require('../'))
|
.use(require('../lib'))
|
||||||
|
|
||||||
const ALICE_DIR = path.join(os.tmpdir(), 'dagsync-alice')
|
const ALICE_DIR = path.join(os.tmpdir(), 'dagsync-alice')
|
||||||
const BOB_DIR = path.join(os.tmpdir(), 'dagsync-bob')
|
const BOB_DIR = path.join(os.tmpdir(), 'dagsync-bob')
|
||||||
|
|
Loading…
Reference in New Issue