Skip to content

Commit 4c5d0d5

Browse files
authored
[refactor] Add global lerna (#546)
* Move lerna to the top * Set version to independent Packages are versioned independently * Update packages and the lock * Add build cache and better reference * Add lerna docker base * Add wormhole_attester sdk and some minor impr * Update tsconfig to fix outDir impact by composite * Update eth package * Update p2w to use solidity-sdk * Change xc-admin CI to lerna CI action * Add more packages to the list + bugfixes * Update dockerfiles to have tilt working * Format the code * Fix some issues * Fix the change of usePyth.ts * lerna build fix * Fix foundry
1 parent 2e63f9a commit 4c5d0d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+85649
-192777
lines changed

.github/workflows/lerna.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lerna build & test
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 18
14+
cache: "npm"
15+
- name: Install deps
16+
run: npm ci
17+
- name: Run lerna build
18+
run: npx lerna run build
19+
- name: Run lerna tests
20+
run: npx lerna run test

.github/workflows/xc-admin.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ bigtable-writer.json
1313
.vscode
1414
.dccache
1515
.aptos
16+
tsconfig.tsbuildinfo

Tiltfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ if not ci:
6262
def k8s_yaml_with_ns(objects):
6363
return k8s_yaml(namespace_inject(objects, namespace))
6464

65+
# Build lerna docker base for npm project
66+
docker_build(
67+
ref = "lerna",
68+
context = ".",
69+
dockerfile = "tilt_devnet/docker_images/Dockerfile.lerna",
70+
)
71+
6572
def build_node_yaml():
6673
node_yaml = read_yaml_stream("tilt_devnet/k8s/node.yaml")
6774

governance/multisig_wh_message_builder/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"build": "tsc",
1515
"format": "prettier --write \"src/**/*.ts\"",
1616
"lint": "eslint src/",
17-
"prepare": "npm run build",
18-
"prepublishOnly": "npm test && npm run lint",
17+
"prepublishOnly": "npm run build && npm test && npm run lint",
1918
"preversion": "npm run lint",
2019
"version": "npm run format && git add -A src",
2120
"start": "node lib/index.js"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4+
"composite": true,
5+
"declarationMap": true,
6+
"incremental": true,
47
"target": "es2016",
58
"module": "commonjs",
69
"outDir": "lib",
@@ -9,7 +12,8 @@
912
"strict": true,
1013
"skipLibCheck": true,
1114
"resolveJsonModule": true,
12-
"noErrorTruncation": true
15+
"noErrorTruncation": true,
16+
"rootDir": "src/"
1317
},
1418
"include": ["src/**/*.ts"]
1519
}

governance/xc-admin/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
lib/

0 commit comments

Comments
 (0)