Skip to content

Commit

Permalink
chore: rename npm packages to use @jstz-dev org
Browse files Browse the repository at this point in the history
This commit additionally renames jstz-types to types and jstz-sdk to sdk.
  • Loading branch information
johnyob authored and zcabter committed Aug 1, 2024
1 parent 612ae96 commit 5675544
Show file tree
Hide file tree
Showing 20 changed files with 94 additions and 113 deletions.
2 changes: 1 addition & 1 deletion docs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jstz deploy dist/index.js
<summary>Output</summary>
<pre style="border: 1px solid #ccc; padding: 10px; border-radius: 4px; overflow-x: auto;">
<code style="color: #FFF;">$ npm run build
> @tezos/get-tez@0.0.0 build
> @jstz-dev/get-tez@0.0.0 build
> esbuild index.ts --bundle --format=esm --target=esnext --minify --outfile=dist/index.js

dist/index.js 777b
Expand Down
4 changes: 2 additions & 2 deletions examples/dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tezos/jstz-dashboard",
"name": "@jstz-dev/dashboard",
"version": "0.0.0",
"type": "module",
"scripts": {
Expand All @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@tezos/jstz-sdk": "^0.0.0",
"@jstz-dev/sdk": "^0.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite-plugin-top-level-await": "^1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/dashboard/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { createRoot } from "react-dom/client";
import { Jstz, User } from "@tezos/jstz-sdk";
import { Jstz, User } from "@jstz-dev/sdk";

const DEFAULT_ENDPOINT = "localhost:8933";

Expand Down
4 changes: 2 additions & 2 deletions examples/fa2/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@tezos/fa2",
"name": "@jstz-dev/fa2",
"authors": "TriliTech Ecosystems and Tools Team <[email protected]>",
"private": true,
"version": "0.0.0",
"main": "fa2.ts",
"dependencies": {
"@tezos/jstz": "^0.0.0"
"@jstz-dev/jstz": "^0.0.0"
},
"devDependencies": {
"esbuild": "^0.20.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/fa2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isAddress } from "@tezos/jstz";
import { isAddress } from "@jstz-dev/jstz";

function isArray<T>(check: (item: T) => item is T, list: unknown): list is T[] {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/fa2/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["@tezos/jstz-types"]
"types": ["@jstz-dev/types"]
}
}
4 changes: 2 additions & 2 deletions examples/get-tez/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@tezos/get-tez",
"name": "@jstz-dev/get-tez",
"authors": "TriliTech Ecosystems and Tools Team <[email protected]>",
"private": true,
"version": "0.0.0",
"main": "index.ts",
"dependencies": {
"@tezos/jstz": "^0.0.0"
"@jstz-dev/jstz": "^0.0.0"
},
"devDependencies": {
"esbuild": "^0.20.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/get-tez/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["@tezos/jstz-types"]
"types": ["@jstz-dev/types"]
}
}
4 changes: 2 additions & 2 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@tezos/hello-world",
"name": "@jstz-dev/hello-world",
"authors": "TriliTech Ecosystems and Tools Team <[email protected]>",
"private": true,
"version": "0.0.0",
"main": "fa2.ts",
"dependencies": {
"@tezos/jstz": "^0.0.0"
"@jstz-dev/jstz": "^0.0.0"
},
"devDependencies": {
"esbuild": "^0.20.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["@tezos/jstz-types"]
"types": ["@jstz-dev/types"]
}
}
144 changes: 57 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tezos/jstz-root",
"name": "@jstz-dev/jstz-root",
"private": true,
"description": "Associated packages for jstz 👨‍⚖️",
"authors": "TriliTech Ecosystems and Tools Team <[email protected]>",
Expand All @@ -20,10 +20,10 @@
"docs:preview": "vitepress preview docs"
},
"dependencies": {
"@tezos/jstz": "^0.0.0",
"@tezos/jstz-types": "^0.0.0",
"@tezos/jstz-sdk": "^0.0.0",
"@tezos/jstz-dashboard": "^0.0.0"
"@jstz-dev/jstz": "^0.0.0",
"@jstz-dev/types": "^0.0.0",
"@jstz-dev/sdk": "^0.0.0",
"@jstz-dev/dashboard": "^0.0.0"
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
Expand Down
11 changes: 8 additions & 3 deletions packages/jstz/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"name": "@tezos/jstz",
"name": "@jstz-dev/jstz",
"description": "TypeScript SDK for jstz 👨‍⚖️",
"authors": "TriliTech Ecosystems and Tools Team <[email protected]>",
"version": "0.0.0",
"main": "index.ts",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"check:types": "tsc --noEmit",
"build": "tsc --outDir dist"
},
"files": [
"dist"
],
"dependencies": {
"@tezos/jstz-types": "^0.0.0"
"@jstz-dev/types": "^0.0.0"
}
}
4 changes: 3 additions & 1 deletion packages/jstz/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "../../tsconfig.json",
"exclude": ["dist"],
"compilerOptions": {
"types": ["@tezos/jstz-types"]
"types": ["@jstz-dev/types"],
"declaration": true
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tezos/jstz-sdk",
"name": "@jstz-dev/sdk",
"description": "TypeScript dApp SDK for jstz 👨‍⚖️",
"authors": "TriliTech Ecosystems and Tools Team <[email protected]>",
"version": "0.0.0",
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5675544

Please sign in to comment.