Skip to content

Commit

Permalink
chore: fix doc:gen dependency graph
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Nov 12, 2024
1 parent b0320ba commit f792d97
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ jobs:
- name: Setup Node
uses: ./.github/actions/setup-node

- name: Build
- name: Build Libraries
env:
API_KEY: ${{ secrets.API_KEY }}
run: yarn build:dev
run: yarn build:libs

- name: Unit Test
run: yarn test:ci
2 changes: 1 addition & 1 deletion aa-sdk/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build": "yarn clean && yarn build:esm && yarn build:types",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/aa-sdk/core",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/aa-sdk/core",
"clean": "rm -rf ./dist",
"test": "vitest",
"test:run": "vitest run"
Expand Down
2 changes: 1 addition & 1 deletion aa-sdk/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build": "yarn clean && yarn build:esm && yarn build:types",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/aa-sdk/ethers",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/aa-sdk/ethers",
"clean": "rm -rf ./dist",
"test": "vitest",
"test:run": "vitest run"
Expand Down
3 changes: 2 additions & 1 deletion account-kit/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"clean": "rm -rf ./dist",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/core",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/core",
"test": "vitest --passWithNoTests",
"test:run": "vitest run --passWithNoTests"
},
"devDependencies": {
"@types/js-cookie": "^3.0.6",
"ak-docgen": "*",
"typescript": "^5.0.4",
"typescript-template": "*",
"vitest": "^2.0.4"
Expand Down
3 changes: 2 additions & 1 deletion account-kit/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
"build": "yarn clean && yarn build:esm && yarn build:types",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/infra",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/infra",
"clean": "rm -rf ./dist",
"test": "vitest",
"test:run": "vitest run"
},
"devDependencies": {
"ak-docgen": "*",
"typescript": "^5.0.4",
"typescript-template": "*",
"vitest": "^2.0.4"
Expand Down
3 changes: 2 additions & 1 deletion account-kit/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"build:dev": "lerna watch --scope='@account-kit/react' --include-dependencies -- lerna run build --scope=@account-kit/react",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/react",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/react",
"clean": "rm -rf ./dist",
"test": "vitest --passWithNoTests",
"test:run": "vitest run --passWithNoTests"
Expand All @@ -55,6 +55,7 @@
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.2.2",
"@tanstack/react-query": "^5.28.9",
"ak-docgen": "*",
"autoprefixer": "^10.4.20",
"msw": "^2.4.4",
"msw-storybook-addon": "^2.0.3",
Expand Down
3 changes: 2 additions & 1 deletion account-kit/signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build": "yarn clean && yarn build:esm && yarn build:types",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/signer",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/signer",
"clean": "rm -rf ./dist",
"test": "vitest --passWithNoTests",
"test:run": "vitest run --passWithNoTests"
Expand All @@ -54,6 +54,7 @@
"@turnkey/iframe-stamper": "^1.0.0",
"@turnkey/viem": "^0.4.8",
"@turnkey/webauthn-stamper": "^0.4.3",
"ak-docgen": "*",
"jwt-decode": "^4.0.0",
"zod": "^3.22.4"
},
Expand Down
3 changes: 2 additions & 1 deletion account-kit/smart-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@
"build": "yarn clean && yarn build:esm && yarn build:types",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm",
"build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"docs:gen": "npx ak-docgen generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/smart-contracts",
"docs:gen": "node ../../doc-gen/dist/esm/cli.js generate --in ./src/index.ts --out ../../site/pages/reference/account-kit/smart-contracts",
"clean": "rm -rf ./dist",
"test": "vitest",
"test:run": "vitest run"
},
"devDependencies": {
"@account-kit/plugingen": "^4.3.1",
"ak-docgen": "*",
"change-case": "^5.1.2",
"dedent": "^1.5.1",
"dotenv": "^16.3.1",
Expand Down
3 changes: 3 additions & 0 deletions examples/ui-demo/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"buildCommand": "cd ../.. && yarn build:demo"
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"postgenerate": "yarn lint:write",
"preinstall": "yarn config set ignore-engines true",
"postinstall": "git submodule update --init --recursive && patch-package",
"build": "is-ci && yarn build:ci || yarn build:dev",
"build:base": "turbo run build --filter=!embedded-accounts-quickstart --filter=!ui-demo",
"build:dev": "yarn build:base --filter=!docs",
"build:ci": "yarn build:base && yarn lint:write",
"build": "yarn build:libs",
"postbuild": "yarn lint:write",
"build:libs": "turbo run build --filter='./account-kit/*' --filter='./aa-sdk/*' --filter='./libs/*'",
"build:demo": "turbo run build --filter=ui-demo",
"build:site": "turbo run build --filter=docs",
"build:examples": "turbo run build",
"clean": "yarn clean:turbo && yarn clean:node_modules",
"clean:turbo": "turbo run clean",
Expand All @@ -39,8 +40,7 @@
"test:ci": "vitest run",
"lint:write": "eslint . --fix && yarn docs:gen && prettier --write --ignore-unknown .",
"lint:check": "eslint . && prettier --check .",
"lint:ci:eslint": "eslint --format github $(git diff --name-only origin/main HEAD | xargs)",
"prepare": "husky install",
"prepare": "husky install && yarn turbo run prepare",
"version": "yarn build:dev"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions site/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"installCommand": "cd .. && yarn install --ignore-engines",
"buildCommand": "cd .. && yarn build:site",
"redirects": [
{
"source": "/getting-started/setup",
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"dependsOn": ["^build"]
},
"docs:gen": {
"dependsOn": ["ak-docgen#build"],
"outputs": ["../../site/pages/reference/**"]
},
"generate": {
Expand Down

0 comments on commit f792d97

Please sign in to comment.