Skip to content

Commit

Permalink
Change _root to a name that doesn't cause warnings (#233)
Browse files Browse the repository at this point in the history
* Change _root to a name that doesn't fail warnings

* Fix prettier:check

* Ignore fern-ir-typescript in prettier

* Ignore fern-ir-typescript in prettier
  • Loading branch information
zachkirsch authored Jun 16, 2022
1 parent 035d230 commit 2d410d4
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 50 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
],
"scripts": {
"clean": "yarn workspaces foreach --verbose --parallel run clean && /bin/rm -rf ./packages/api/generated",
"compile": "yarn compile:prepare && yarn workspace @fern-api/_root run compile",
"compile": "yarn compile:prepare && yarn workspace @fern-api/compile-root run compile",
"compile:prepare": "ts-node scripts/check-root-package.ts --fix",
"compile:all": "yarn workspaces foreach --verbose --parallel --topological-dev run compile:all",
"test": "yarn workspaces foreach --verbose --parallel run test",
"lint:eslint": "eslint --max-warnings 0 .",
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:monorepo": "mrlint lint",
"lint:monorepo:fix": "yarn lint:monorepo --fix",
"format": "prettier --write --ignore-unknown --ignore-path ./shared/.prettierignore ",
"format": "prettier --write --ignore-unknown --ignore-path ./shared/.prettierignore",
"format:all": "yarn format \"**\"",
"format:check": "yarn format:all --check",
"format:check": "prettier --check --ignore-unknown --ignore-path ./shared/.prettierignore \"**\"",
"depcheck": "yarn workspaces foreach --verbose --parallel run depcheck",
"codegen": "fern generate",
"codegen:local": "yarn fern:local generate",
Expand Down
2 changes: 1 addition & 1 deletion packages/_root/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fern-api/_root",
"name": "@fern-api/compile-root",
"version": "0.0.0",
"private": true,
"files": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-root-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { promisify } from "util";
const promisifiedExec = promisify(exec);

const MONOREPO_ROOT_PACKAGE = "fern";
const COMPILE_ROOT_PACKAGE = "@fern-api/_root";
const COMPILE_ROOT_PACKAGE = "@fern-api/compile-root";

interface YarnPackage {
name: string;
Expand Down
4 changes: 3 additions & 1 deletion shared/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
lib
build
dist
.yarn
.husky
generated
bundle.js
.pnp*
.pnp*
../packages/compiler/ir-types/fern-ir-typescript
88 changes: 44 additions & 44 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1415,50 +1415,6 @@ __metadata:
languageName: node
linkType: hard

"@fern-api/_root@workspace:packages/_root":
version: 0.0.0-use.local
resolution: "@fern-api/_root@workspace:packages/_root"
dependencies:
"@babel/core": "npm:^7.17.10"
"@babel/preset-env": "npm:^7.17.10"
"@babel/preset-typescript": "npm:^7.16.7"
"@fern-api/add-generator": "workspace:*"
"@fern-api/api": "workspace:*"
"@fern-api/commons": "workspace:*"
"@fern-api/compiler": "workspace:*"
"@fern-api/compiler-commons": "workspace:*"
"@fern-api/docker-utils": "workspace:*"
"@fern-api/ete-tests": "workspace:*"
"@fern-api/generator-runner": "workspace:*"
"@fern-api/init": "workspace:*"
"@fern-api/ir-generation": "workspace:*"
"@fern-api/openapi-converter": "workspace:*"
"@fern-api/syntax-analysis": "workspace:*"
"@fern-typescript/client": "workspace:*"
"@fern-typescript/commons": "workspace:*"
"@fern-typescript/encoders": "workspace:*"
"@fern-typescript/errors": "workspace:*"
"@fern-typescript/hathora-encoding-helper": "workspace:*"
"@fern-typescript/helper-manager": "workspace:*"
"@fern-typescript/helper-utils": "workspace:*"
"@fern-typescript/json-encoding-helper": "workspace:*"
"@fern-typescript/model": "workspace:*"
"@fern-typescript/server": "workspace:*"
"@fern-typescript/service-utils": "workspace:*"
"@fern-typescript/testing-utils": "workspace:*"
"@types/jest": "npm:^27.4.1"
"@types/node": "npm:^17.0.33"
depcheck: "npm:^1.4.3"
eslint: "npm:^8.12.0"
fern-api: "workspace:*"
fern-typescript: "workspace:*"
jest: "npm:^27.5.1"
npm-run-all: "npm:^4.1.5"
prettier: "npm:^2.6.2"
typescript: "npm:^4.6.4"
languageName: unknown
linkType: soft

"@fern-api/add-generator@npm:0.0.85":
version: 0.0.85
resolution: "@fern-api/add-generator@npm:0.0.85"
Expand Down Expand Up @@ -1538,6 +1494,50 @@ __metadata:
languageName: unknown
linkType: soft

"@fern-api/compile-root@workspace:packages/_root":
version: 0.0.0-use.local
resolution: "@fern-api/compile-root@workspace:packages/_root"
dependencies:
"@babel/core": "npm:^7.17.10"
"@babel/preset-env": "npm:^7.17.10"
"@babel/preset-typescript": "npm:^7.16.7"
"@fern-api/add-generator": "workspace:*"
"@fern-api/api": "workspace:*"
"@fern-api/commons": "workspace:*"
"@fern-api/compiler": "workspace:*"
"@fern-api/compiler-commons": "workspace:*"
"@fern-api/docker-utils": "workspace:*"
"@fern-api/ete-tests": "workspace:*"
"@fern-api/generator-runner": "workspace:*"
"@fern-api/init": "workspace:*"
"@fern-api/ir-generation": "workspace:*"
"@fern-api/openapi-converter": "workspace:*"
"@fern-api/syntax-analysis": "workspace:*"
"@fern-typescript/client": "workspace:*"
"@fern-typescript/commons": "workspace:*"
"@fern-typescript/encoders": "workspace:*"
"@fern-typescript/errors": "workspace:*"
"@fern-typescript/hathora-encoding-helper": "workspace:*"
"@fern-typescript/helper-manager": "workspace:*"
"@fern-typescript/helper-utils": "workspace:*"
"@fern-typescript/json-encoding-helper": "workspace:*"
"@fern-typescript/model": "workspace:*"
"@fern-typescript/server": "workspace:*"
"@fern-typescript/service-utils": "workspace:*"
"@fern-typescript/testing-utils": "workspace:*"
"@types/jest": "npm:^27.4.1"
"@types/node": "npm:^17.0.33"
depcheck: "npm:^1.4.3"
eslint: "npm:^8.12.0"
fern-api: "workspace:*"
fern-typescript: "workspace:*"
jest: "npm:^27.5.1"
npm-run-all: "npm:^4.1.5"
prettier: "npm:^2.6.2"
typescript: "npm:^4.6.4"
languageName: unknown
linkType: soft

"@fern-api/compiler-commons@npm:0.0.85":
version: 0.0.85
resolution: "@fern-api/compiler-commons@npm:0.0.85"
Expand Down

0 comments on commit 2d410d4

Please sign in to comment.