Skip to content

Commit

Permalink
get seed working again
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Aug 12, 2024
1 parent 15e17ce commit ca56ff3
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Update yarn.lock with new versions
run: yarn
- name: Compile
run: yarn compile
run: pnpm comile
- name: Publish seed CLI
run: yarn workspace @fern-api/seed-cli publish:cli
- name: Publish fern-api-dev CLI
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Update yarn.lock with new versions
run: yarn
- name: Compile
run: yarn compile
run: pnpm comile
- name: Publish fern-api-dev CLI
run: yarn workspace @fern-api/cli publish:cli:dev --access restricted
- name: Publish seed CLI
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Update yarn.lock with new versions
run: yarn
- name: Compile
run: yarn compile
run: pnpm comile
- name: Publish fern-api-dev CLI
run: yarn workspace @fern-api/cli publish:cli:dev --access restricted
- name: Publish seed CLI
Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This tells VSCode to rely on the version of TypeScript that lives in `.yarn/sdks

### Compiling

To compile the packages in this monorepo, run `yarn compile`.
To compile the packages in this monorepo, run `pnpm comile`.

### Tests

Expand All @@ -81,9 +81,9 @@ Many of our tests rely on [Jest snapshot testing](https://jestjs.io/docs/snapsho

To build the CLI, run either:

- `yarn dist:cli:dev`. This compiles and bundles a CLI that communicates with our dev cloud environment. The CLI is outputted to `packages/cli/cli/dist/dev/cli.cjs`.
- `pnpm dist:cli:dev`. This compiles and bundles a CLI that communicates with our dev cloud environment. The CLI is outputted to `packages/cli/cli/dist/dev/cli.cjs`.

- `yarn dist:cli:prod`. This compiles and bundles a CLI that communicates with our production cloud environment. The CLI is outputted to `packages/cli/cli/dist/prod/cli.cjs`.
- `pnpm dist:cli:prod`. This compiles and bundles a CLI that communicates with our production cloud environment. The CLI is outputted to `packages/cli/cli/dist/prod/cli.cjs`.

To run the locally-generated CLI, run:

Expand Down Expand Up @@ -129,7 +129,7 @@ that depends on a lower IR version can continue to be run from our CLI.
3. Generate a TypeScript SDK for the IR by running `fern generate --api ir-types-vXXX`
4. Update all `package.json` files to use new `ir-sdk` npm version.
Run `yarn install`
5. Run `yarn compile`. You will see compile errors related to your schema changes.
5. Run `pnpm comile`. You will see compile errors related to your schema changes.

**Step 2: Write a reverse migration**

Expand Down Expand Up @@ -180,7 +180,7 @@ specific API that you are looking to generate:
yarn seed run --generator ts-sdk --path /Users/jdoe/fern/apis/imdb
```

To run against a custom fixture with an audience, run
To run against a custom fixture with an audience, run

```sh
yarn seed run --generator ts-sdk --path /Users/jdoe/fern/apis/imdb --audience external
Expand Down
6 changes: 3 additions & 3 deletions generators/csharp/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"organize-imports": "organize-imports-cli tsconfig.json",
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "yarn compile && node build.cjs && cp -R ../codegen/src/asIs dist",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-csharp-model:latest ../../.."
"dist:cli": "pnpm comile && node build.cjs && cp -R ../codegen/src/asIs dist",
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-csharp-model:latest ../../.."
},
"dependencies": {
"@fern-api/csharp-codegen": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions generators/csharp/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs && cp -R ../codegen/src/asIs dist",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-csharp-sdk:latest ../../.."
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-csharp-sdk:latest ../../.."
},
"dependencies": {
"@fern-api/core-utils": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions generators/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-openapi:latest .",
"dockerTagVersion": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-openapi:${0} ."
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-openapi:latest .",
"dockerTagVersion": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-openapi:${0} ."
},
"dependencies": {
"@fern-api/generator-commons": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions generators/postman/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-postman:latest .",
"dockerTagVersion": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-postman:${0} ."
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-postman:latest .",
"dockerTagVersion": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-postman:${0} ."
},
"dependencies": {
"@fern-api/generator-commons": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions generators/ruby/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-model:latest ../../..",
"dockerTagVersion": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-model:${0} ../../.."
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-model:latest ../../..",
"dockerTagVersion": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-model:${0} ../../.."
},
"dependencies": {
"@fern-api/fs-utils": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions generators/ruby/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-sdk:latest ../../..",
"dockerTagVersion": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-sdk:${0} ../../.."
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-sdk:latest ../../..",
"dockerTagVersion": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-ruby-sdk:${0} ../../.."
},
"dependencies": {
"@fern-api/fern-ruby-model": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions generators/swift/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-swift-sdk:latest ../../..",
"dockerTagVersion": "yarn dist:cli && docker build -f ./Dockerfile -t fernapi/fern-swift-sdk:${0} ../../.."
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish",
"dockerTagLatest": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-swift-sdk:latest ../../..",
"dockerTagVersion": "pnpm dist:cli && docker build -f ./Dockerfile -t fernapi/fern-swift-sdk:${0} ../../.."
},
"dependencies": {
"@fern-api/core-utils": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/yaml/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@fern-api/fs-utils": "workspace:*",
"@fern-api/yaml-schema": "workspace:*",
"prettier": "^2.7.1",
"zod": "^3.22.3",
"zod-to-json-schema": "3.23.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"organize-imports": "organize-imports-cli tsconfig.json",
"depcheck": "depcheck",
"dist:cli": "tsup ./src/cli.ts --cjsInterop --format cjs",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish"
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish"
},
"devDependencies": {
"@fern-api/fs-utils": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/seed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"depcheck": "depcheck",
"env:prod": "env-cmd -r .env-cmdrc.cjs -e prod",
"dist:cli": "pnpm compile && node build.cjs && cp -R ../../test-definitions/fern dist",
"publish:cli": "yarn dist:cli && cd dist && yarn npm publish --access public",
"publish:cli": "pnpm dist:cli && cd dist && yarn npm publish --access public",
"generate": "fern generate --local"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit ca56ff3

Please sign in to comment.