From 88ff525373d250becdb1432ee34e7001a98b356f Mon Sep 17 00:00:00 2001 From: Fuyao Zhao Date: Tue, 7 Nov 2023 20:57:53 +0800 Subject: [PATCH] fix(codegen): gen entry point should have shebang, fix ci (#53) --- .circleci/config.yml | 10 +++++++--- packages/aptos/src/codegen/run.ts | 2 +- packages/sui/src/codegen/run.ts | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d3559e9..771255a9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,11 +4,13 @@ version: 2.1 # Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. # See: https://circleci.com/docs/2.0/orb-intro/ orbs: - node: circleci/node@5.0.2 + node: circleci/node@5.1.0 jobs: build_and_test: - executor: node/default # use the default executor defined within the orb + executor: + name: node/default # use the default executor defined within the orb + tag: '18.18' steps: - checkout - restore_cache: @@ -19,7 +21,9 @@ jobs: name: Install pnpm package manager command: | sudo corepack enable - sudo corepack prepare pnpm@latest-8 --activate + sudo corepack prepare pnpm@8.9.2 --activate + node --version + pnpm --version - run: name: Install Dependencies command: | diff --git a/packages/aptos/src/codegen/run.ts b/packages/aptos/src/codegen/run.ts index 3ae0ee45..5c2740b2 100644 --- a/packages/aptos/src/codegen/run.ts +++ b/packages/aptos/src/codegen/run.ts @@ -1,4 +1,4 @@ -// #!/usr/bin/env node +#!/usr/bin/env node import { codegen } from './codegen.js' import { AptosClient } from 'aptos' diff --git a/packages/sui/src/codegen/run.ts b/packages/sui/src/codegen/run.ts index 8ffc31b8..f2bf35d0 100644 --- a/packages/sui/src/codegen/run.ts +++ b/packages/sui/src/codegen/run.ts @@ -1,4 +1,4 @@ -// #!/usr/bin/env node +#!/usr/bin/env node import { codegen } from './codegen.js'