Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ To perform a release, follow these steps:
4. When this release is published, it will automatically trigger a CI workflow to publish the updated packages to NPM.

If you have a javascript package that shouldn't be published, simply add `"private": "true"` to the `package.json` file
and it will be excluded from the publishing workflow.
and it will be excluded from the publishing workflow. If you are creating a new public javascript package, you should add
the following config option to `package.json`:

```
"publishConfig": {
"access": "public"
},
```

### pre-commit hooks

Expand Down
3 changes: 3 additions & 0 deletions price_pusher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "price_pusher"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest src/ --passWithNoTests",
"build": "tsc",
Expand Down
3 changes: 3 additions & 0 deletions price_service/client/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "price_service/client/js"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest --testPathIgnorePatterns=.*.e2e.test.ts --passWithNoTests",
"test:e2e": "jest --testPathPattern=.*.e2e.test.ts",
Expand Down
3 changes: 3 additions & 0 deletions price_service/sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"url": "https://github.com/pyth-network/pyth-crosschain.git",
"directory": "price_service/sdk/js"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest",
"build": "tsc",
Expand Down
3 changes: 3 additions & 0 deletions target_chains/aptos/sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "target_chains/aptos/sdk/js"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest --passWithNoTests",
"build": "tsc",
Expand Down
3 changes: 3 additions & 0 deletions target_chains/cosmwasm/sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "target_chains/cosmwasm/sdk/js"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest --passWithNoTests",
"build": "tsc",
Expand Down
3 changes: 3 additions & 0 deletions target_chains/ethereum/sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "target_chains/ethereum/sdk/js"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest --passWithNoTests",
"build": "tsc",
Expand Down