Skip to content

Commit

Permalink
add polynetwork and bridge package scaffolds
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenkhong committed Nov 21, 2024
1 parent fbfb7f8 commit 3f21903
Show file tree
Hide file tree
Showing 10 changed files with 136 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/bridge/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@demex-sdk/bridge",
"version": "0.0.3",
"license": "MIT",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"build:clean": "concurrently 'rimraf ./dist-*' 'rimraf ./tsconfig.*.tsbuildinfo'"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
"types": "./dist-types/index.d.ts",
"dependencies": {
"tslib": "^2.6.2"
},
"exports": {
".": {
"module": "./dist-es/index.js",
"node": "./dist-cjs/index.js",
"import": "./dist-es/index.js",
"require": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts"
},
"./package.json": {
"module": "./package.json",
"node": "./package.json",
"import": "./package.json",
"require": "./package.json"
}
},
"files": [
"dist-*/**"
],
"devDependencies": {
"concurrently": "7.0.0",
"eslint": "^9.13.0"
}
}
1 change: 1 addition & 0 deletions packages/bridge/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {}
9 changes: 9 additions & 0 deletions packages/bridge/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist-cjs",
"baseUrl": "."
},
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
9 changes: 9 additions & 0 deletions packages/bridge/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist-es",
"baseUrl": "."
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
}
9 changes: 9 additions & 0 deletions packages/bridge/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "dist-types",
"rootDir": "src",
},
"extends": "../../tsconfig.types.json",
"include": ["src/"]
}
40 changes: 40 additions & 0 deletions packages/polynetwork/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@demex-sdk/polynetwork",
"version": "0.0.3",
"license": "MIT",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"build:clean": "concurrently 'rimraf ./dist-*' 'rimraf ./tsconfig.*.tsbuildinfo'"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
"types": "./dist-types/index.d.ts",
"dependencies": {
"tslib": "^2.6.2"
},
"exports": {
".": {
"module": "./dist-es/index.js",
"node": "./dist-cjs/index.js",
"import": "./dist-es/index.js",
"require": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts"
},
"./package.json": {
"module": "./package.json",
"node": "./package.json",
"import": "./package.json",
"require": "./package.json"
}
},
"files": [
"dist-*/**"
],
"devDependencies": {
"concurrently": "7.0.0",
"eslint": "^9.13.0"
}
}
1 change: 1 addition & 0 deletions packages/polynetwork/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {}
9 changes: 9 additions & 0 deletions packages/polynetwork/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist-cjs",
"baseUrl": "."
},
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
9 changes: 9 additions & 0 deletions packages/polynetwork/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist-es",
"baseUrl": "."
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
}
9 changes: 9 additions & 0 deletions packages/polynetwork/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "dist-types",
"rootDir": "src",
},
"extends": "../../tsconfig.types.json",
"include": ["src/"]
}

0 comments on commit 3f21903

Please sign in to comment.