Skip to content

Commit

Permalink
chore: setup package versioning and publish (#7)
Browse files Browse the repository at this point in the history
* chore: changing packages org to @metaplex-foundation

* chore: adding prebublish scripts to all packages

* chore: lerna version config

* chore: lerna version + publish scripts

* version: ignore test/markdown changes
  • Loading branch information
thlorenz authored Dec 3, 2021
1 parent bd7a93d commit e0b4262
Show file tree
Hide file tree
Showing 60 changed files with 108 additions and 94 deletions.
7 changes: 4 additions & 3 deletions auction/js/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@metaplex/mpl-auction",
"name": "@metaplex-foundation/mpl-auction",
"version": "0.0.0",
"description": "MPL Token Metadata JavaScript API.",
"main": "dist/src/mpl-auction.js",
"types": "dist/src/mpl-auction.d.ts",
"scripts": {
"prepublish": "yarn build && yarn test",
"build:docs": "typedoc",
"build": "rimraf dist && tsc -p tsconfig.json",
"test": "echo mpl-auction tests coming up ...",
Expand All @@ -24,12 +25,12 @@
"blockchain"
],
"homepage": "https://metaplex.com",
"repository": "https://github.com/metaplex/metaplex-program-library.git",
"repository": "https://github.com/metaplex-foundation/metaplex-program-library.git",
"author": "Metaplex Maintainers <[email protected]>",
"license": "MIT",
"private": false,
"dependencies": {
"@metaplex/mpl-core": "0.0.0",
"@metaplex-foundation/mpl-core": "0.0.0",
"@solana/spl-token": "^0.1.8",
"@solana/web3.js": "^1.31.0"
},
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/AuctionProgram.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PublicKey } from '@solana/web3.js';
import { config, Program } from '@metaplex/mpl-core';
import { config, Program } from '@metaplex-foundation/mpl-core';

export class AuctionProgram extends Program {
static readonly PREFIX = 'auction';
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/accounts/Auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ERROR_INVALID_OWNER,
AnyPublicKey,
StringPublicKey,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { AccountInfo, Connection, PublicKey } from '@solana/web3.js';
import BN from 'bn.js';
import { Buffer } from 'buffer';
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/accounts/AuctionExtended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
AnyPublicKey,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import BN from 'bn.js';
import { AuctionProgram } from '../AuctionProgram';
import { Buffer } from 'buffer';
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/accounts/BidderMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ERROR_INVALID_OWNER,
AnyPublicKey,
StringPublicKey,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { AccountInfo, PublicKey } from '@solana/web3.js';
import BN from 'bn.js';
import { AuctionProgram } from '../AuctionProgram';
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/accounts/BidderPot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ERROR_INVALID_OWNER,
AnyPublicKey,
StringPublicKey,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { AuctionProgram } from '../AuctionProgram';
import { AccountInfo, PublicKey } from '@solana/web3.js';
import { Buffer } from 'buffer';
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/transactions/CancelBid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, StringPublicKey, Transaction } from '@metaplex/mpl-core';
import { Borsh, StringPublicKey, Transaction } from '@metaplex-foundation/mpl-core';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import {
PublicKey,
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/transactions/CreateAuction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction, StringPublicKey } from '@metaplex/mpl-core';
import { Borsh, Transaction, StringPublicKey } from '@metaplex-foundation/mpl-core';
import {
PublicKey,
SystemProgram,
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/transactions/CreateAuctionV2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction, StringPublicKey } from '@metaplex/mpl-core';
import { Borsh, Transaction, StringPublicKey } from '@metaplex-foundation/mpl-core';
import {
PublicKey,
SystemProgram,
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/transactions/PlaceBid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction, StringPublicKey } from '@metaplex/mpl-core';
import { Borsh, Transaction, StringPublicKey } from '@metaplex-foundation/mpl-core';
import {
PublicKey,
SystemProgram,
Expand Down
2 changes: 1 addition & 1 deletion auction/js/src/transactions/SetAuctionAuthority.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import { PublicKey, TransactionCtorFields, TransactionInstruction } from '@solana/web3.js';
import { AuctionProgram } from '../AuctionProgram';

Expand Down
5 changes: 3 additions & 2 deletions core/js/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@metaplex/mpl-core",
"name": "@metaplex-foundation/mpl-core",
"version": "0.0.0",
"description": "MPL Core Tooling.",
"main": "dist/src/mpl-core.js",
"types": "dist/src/mpl-core.d.ts",
"scripts": {
"prepublish": "yarn build && yarn test",
"build:docs": "typedoc",
"build": "rimraf dist && tsc -p tsconfig.json",
"test": "echo mpl-core tests coming up ...",
Expand All @@ -24,7 +25,7 @@
"blockchain"
],
"homepage": "https://metaplex.com",
"repository": "https://github.com/metaplex/metaplex-program-library.git",
"repository": "https://github.com/metaplex-foundation/metaplex-program-library.git",
"author": "Metaplex Maintainers <[email protected]>",
"license": "MIT",
"private": false,
Expand Down
9 changes: 8 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"npmClient": "yarn",
"packages": ["core/js", "auction/js", "token-vault/js", "token-metadata/js", "metaplex/js"],
"useWorkspaces": true,
"version": "0.0.0"
"version": "independent",
"command": {
"version": {
"allowBranch": ["master"],
"message": "chore: version updated packages",
"ignoreChanges": ["**/test/**", "**/*.md"]
}
}
}
13 changes: 7 additions & 6 deletions metaplex/js/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@metaplex/mpl-metaplex",
"name": "@metaplex-foundation/mpl-metaplex",
"version": "0.0.0",
"description": "MPL Token Metadata JavaScript API.",
"main": "dist/src/mpl-metaplex.js",
"types": "dist/src/mpl-metaplex.d.ts",
"scripts": {
"prepublish": "yarn build && yarn test",
"build:docs": "typedoc",
"build": "rimraf dist && tsc -p tsconfig.json",
"test": "echo mpl-metaplex tests coming up ...",
Expand All @@ -24,15 +25,15 @@
"blockchain"
],
"homepage": "https://metaplex.com",
"repository": "https://github.com/metaplex/metaplex-program-library.git",
"repository": "https://github.com/metaplex-foundation/metaplex-program-library.git",
"author": "Metaplex Maintainers <[email protected]>",
"license": "MIT",
"private": false,
"dependencies": {
"@metaplex/mpl-auction": "0.0.0",
"@metaplex/mpl-core": "0.0.0",
"@metaplex/mpl-token-metadata": "0.0.0",
"@metaplex/mpl-token-vault": "0.0.0",
"@metaplex-foundation/mpl-auction": "0.0.0",
"@metaplex-foundation/mpl-core": "0.0.0",
"@metaplex-foundation/mpl-token-metadata": "0.0.0",
"@metaplex-foundation/mpl-token-vault": "0.0.0",
"@solana/spl-token": "^0.1.8",
"@solana/web3.js": "^1.31.0"
},
Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/MetaplexProgram.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config, Program } from '@metaplex/mpl-core';
import { config, Program } from '@metaplex-foundation/mpl-core';
import { PublicKey } from '@solana/web3.js';

export enum MetaplexKey {
Expand Down
4 changes: 2 additions & 2 deletions metaplex/js/src/accounts/AuctionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import bs58 from 'bs58';
import { BidRedemptionTicket, WINNER_INDEX_OFFSETS } from './BidRedemptionTicket';
import { MetaplexKey, MetaplexProgram } from '../MetaplexProgram';
import { Buffer } from 'buffer';
import { Auction } from '@metaplex/mpl-auction';
import { Auction } from '@metaplex-foundation/mpl-auction';
import {
Account,
AnyPublicKey,
Expand All @@ -13,7 +13,7 @@ import {
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
StringPublicKey,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';

export enum AuctionManagerStatus {
Initialized,
Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/AuctionWinnerTokenTypeTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ERROR_INVALID_OWNER,
TupleNumericType,
getBNFromData,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { AccountInfo, PublicKey } from '@solana/web3.js';
import BN from 'bn.js';
import { Buffer } from 'buffer';
Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/BidRedemptionTicket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ERROR_DEPRECATED_ACCOUNT_DATA,
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { Buffer } from 'buffer';

export interface BidRedemptionTicketV2Data {
Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/PayoutTicket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Borsh,
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { MetaplexKey, MetaplexProgram } from '../MetaplexProgram';
import { Buffer } from 'buffer';

Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/PrizeTrackingTicket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Borsh,
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { MetaplexKey, MetaplexProgram } from '../MetaplexProgram';
import { Buffer } from 'buffer';

Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/SafetyDepositConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ERROR_INVALID_OWNER,
getBNFromData,
TupleNumericType,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { MetaplexKey, MetaplexProgram } from '../MetaplexProgram';
import { Buffer } from 'buffer';

Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
Borsh,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { MetaplexProgram, MetaplexKey } from '../MetaplexProgram';
import { AccountInfo, Connection, PublicKey } from '@solana/web3.js';
import bs58 from 'bs58';
Expand Down
2 changes: 1 addition & 1 deletion metaplex/js/src/accounts/WhitelistedCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Account,
ERROR_INVALID_ACCOUNT_DATA,
ERROR_INVALID_OWNER,
} from '@metaplex/mpl-core';
} from '@metaplex-foundation/mpl-core';
import { MetaplexProgram, MetaplexKey } from '../MetaplexProgram';
import { Buffer } from 'buffer';
import { AccountInfo, PublicKey } from '@solana/web3.js';
Expand Down
6 changes: 3 additions & 3 deletions metaplex/js/src/transactions/ClaimBid.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { ParamsWithStore } from '@metaplex/mpl-token-vault';
import { AuctionProgram } from '@metaplex/mpl-auction';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import { ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import { AuctionProgram } from '@metaplex-foundation/mpl-auction';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import {
PublicKey,
Expand Down
6 changes: 3 additions & 3 deletions metaplex/js/src/transactions/EndAuction.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import BN from 'bn.js';
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import {
PublicKey,
SYSVAR_CLOCK_PUBKEY,
TransactionCtorFields,
TransactionInstruction,
} from '@solana/web3.js';
import { ParamsWithStore } from '@metaplex/mpl-token-vault';
import { AuctionProgram } from '@metaplex/mpl-auction';
import { ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import { AuctionProgram } from '@metaplex-foundation/mpl-auction';
import { MetaplexProgram } from '../MetaplexProgram';

export class EndAuctionArgs extends Borsh.Data<{ reveal: BN[] | null }> {
Expand Down
4 changes: 2 additions & 2 deletions metaplex/js/src/transactions/InitAuctionManagerV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Borsh, TupleNumericType, Transaction } from '@metaplex/mpl-core';
import { ParamsWithStore } from '@metaplex/mpl-token-vault';
import { Borsh, TupleNumericType, Transaction } from '@metaplex-foundation/mpl-core';
import { ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import {
PublicKey,
SystemProgram,
Expand Down
6 changes: 3 additions & 3 deletions metaplex/js/src/transactions/RedeemBid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import {
PublicKey,
Expand All @@ -7,8 +7,8 @@ import {
TransactionCtorFields,
TransactionInstruction,
} from '@solana/web3.js';
import { MetadataProgram } from '@metaplex/mpl-token-metadata';
import { VaultProgram, ParamsWithStore } from '@metaplex/mpl-token-vault';
import { MetadataProgram } from '@metaplex-foundation/mpl-token-metadata';
import { VaultProgram, ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import { MetaplexProgram } from '../MetaplexProgram';

export class RedeemBidArgs extends Borsh.Data {
Expand Down
6 changes: 3 additions & 3 deletions metaplex/js/src/transactions/RedeemFullRightsTransferBid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import {
PublicKey,
Expand All @@ -7,8 +7,8 @@ import {
TransactionCtorFields,
TransactionInstruction,
} from '@solana/web3.js';
import { MetadataProgram } from '@metaplex/mpl-token-metadata';
import { VaultProgram, ParamsWithStore } from '@metaplex/mpl-token-vault';
import { MetadataProgram } from '@metaplex-foundation/mpl-token-metadata';
import { VaultProgram, ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import { MetaplexProgram } from '../MetaplexProgram';
import { ProxyCallAddress, RedeemUnusedWinningConfigItemsAsAuctioneerArgs } from './RedeemBid';

Expand Down
8 changes: 4 additions & 4 deletions metaplex/js/src/transactions/SetStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import {
PublicKey,
Expand All @@ -8,9 +8,9 @@ import {
TransactionInstruction,
} from '@solana/web3.js';

import { MetadataProgram } from '@metaplex/mpl-token-metadata';
import { VaultProgram, ParamsWithStore } from '@metaplex/mpl-token-vault';
import { AuctionProgram } from '@metaplex/mpl-auction';
import { MetadataProgram } from '@metaplex-foundation/mpl-token-metadata';
import { VaultProgram, ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import { AuctionProgram } from '@metaplex-foundation/mpl-auction';
import { MetaplexProgram } from '../MetaplexProgram';

export class SetStoreArgs extends Borsh.Data<{ public: boolean }> {
Expand Down
4 changes: 2 additions & 2 deletions metaplex/js/src/transactions/SetWhitelistedCreator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { ParamsWithStore } from '@metaplex/mpl-token-vault';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import { ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';
import {
PublicKey,
SystemProgram,
Expand Down
6 changes: 3 additions & 3 deletions metaplex/js/src/transactions/StartAuction.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Borsh, Transaction } from '@metaplex/mpl-core';
import { Borsh, Transaction } from '@metaplex-foundation/mpl-core';
import {
PublicKey,
SYSVAR_CLOCK_PUBKEY,
TransactionCtorFields,
TransactionInstruction,
} from '@solana/web3.js';
import { AuctionProgram } from '@metaplex/mpl-auction';
import { AuctionProgram } from '@metaplex-foundation/mpl-auction';
import { MetaplexProgram } from '../MetaplexProgram';
import { ParamsWithStore } from '@metaplex/mpl-token-vault';
import { ParamsWithStore } from '@metaplex-foundation/mpl-token-vault';

export class StartAuctionArgs extends Borsh.Data {
static readonly SCHEMA = this.struct([['instruction', 'u8']]);
Expand Down
Loading

0 comments on commit e0b4262

Please sign in to comment.