Skip to content

Commit ae0fc78

Browse files
committed
chore: add lerna publish config
1 parent 16347de commit ae0fc78

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "JS implementation of the IPFS UnixFS",
55
"scripts": {
66
"reset": "lerna run clean && rimraf packages/*/node_modules node_modules packages/*/package-lock.json package-lock.json",
7+
"postinstall": "lerna link",
78
"test": "lerna run test",
89
"coverage": "lerna run coverage",
910
"prepare": "lerna run prepare",

packages/ipfs-unixfs-exporter/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"fs": false
1010
},
1111
"scripts": {
12-
"prepare": "aegir build --no-bundle",
12+
"prepare": "aegir build --no-bundle --esm-tests",
1313
"test": "aegir test",
1414
"build": "aegir build --esm-tests",
1515
"clean": "rimraf ./dist",
@@ -33,6 +33,9 @@
3333
"npm": ">=7.0.0"
3434
},
3535
"homepage": "https://github.com/ipfs/js-ipfs-unixfs#readme",
36+
"publishConfig": {
37+
"directory": "dist"
38+
},
3639
"devDependencies": {
3740
"@types/mocha": "^8.2.1",
3841
"@types/sinon": "^10.0.0",

packages/ipfs-unixfs-importer/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"fs": false
1010
},
1111
"scripts": {
12-
"prepare": "aegir build --no-bundle",
12+
"prepare": "aegir build --no-bundle --esm-tests",
1313
"test": "aegir test",
1414
"build": "aegir build --esm-tests",
1515
"clean": "rimraf ./dist",
@@ -33,6 +33,9 @@
3333
"npm": ">=7.0.0"
3434
},
3535
"homepage": "https://github.com/ipfs/js-ipfs-unixfs#readme",
36+
"publishConfig": {
37+
"directory": "dist"
38+
},
3639
"devDependencies": {
3740
"@types/mocha": "^8.2.1",
3841
"aegir": "https://gitpkg.now.sh/ipfs/aegir?feat/build-esm-modules-follow-up-with-dist",

packages/ipfs-unixfs/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"fs": false
1010
},
1111
"scripts": {
12-
"prepare": "aegir build",
12+
"prepare": "aegir build --esm-tests",
1313
"prepare:proto": "pbjs -t static-module -w es6 -r ipfs-unixfs --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/unixfs.js ./src/unixfs.proto",
1414
"prepare:proto-types": "pbts -o src/unixfs.d.ts src/unixfs.js",
1515
"prepare:types": "aegir build --no-bundle",
@@ -36,6 +36,9 @@
3636
"npm": ">=7.0.0"
3737
},
3838
"homepage": "https://github.com/ipfs/js-ipfs-unixfs#readme",
39+
"publishConfig": {
40+
"directory": "dist"
41+
},
3942
"devDependencies": {
4043
"@types/mocha": "^8.2.1",
4144
"aegir": "https://gitpkg.now.sh/ipfs/aegir?feat/build-esm-modules-follow-up-with-dist",

0 commit comments

Comments
 (0)