Skip to content

Commit

Permalink
chore: add update-ts-references (verdaccio#2168)
Browse files Browse the repository at this point in the history
* chore: add update-ts-references

* chore: update version
  • Loading branch information
juanpicado committed Apr 9, 2021
1 parent 0f18f10 commit 0778eeb
Show file tree
Hide file tree
Showing 30 changed files with 399 additions and 150 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"supertest": "4.0.2",
"ts-node": "^9.1.1",
"typescript": "^4.1.3",
"update-ts-references": "2.1.1",
"verdaccio": "next",
"verdaccio-audit": "workspace:*",
"verdaccio-auth-memory": "workspace:*",
Expand Down Expand Up @@ -147,7 +148,8 @@
"ci:version": "run-s ci:version:changeset ci:version:install",
"ci:version:install": "pnpm install --frozen-lockfile=false",
"ci:version:changeset": "changeset version",
"ci:publish": "changeset publish"
"ci:publish": "changeset publish",
"ts:ref": "update-ts-references --discardComments"
},
"license": "MIT",
"commitlint": {
Expand Down
22 changes: 8 additions & 14 deletions packages/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,34 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../utils"
"path": "../auth"
},
{
"path": "../config"
},
{
"path": "../commons"
"path": "../core/commons-api"
},
{
"path": "../hooks"
"path": "../core/tarball"
},
{
"path": "../store"
"path": "../hooks"
},
{
"path": "../middleware"
"path": "../logger"
},
{
"path": "../auth"
"path": "../middleware"
},
{
"path": "../server"
},
{
"path": "../loaders"
},
{
"path": "../logger"
},
{
"path": "../core/commons-api"
"path": "../store"
},
{
"path": "../core/tarball"
"path": "../utils"
}
]
}
1 change: 0 additions & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/auth": "workspace:6.0.0-6-next.6",
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
"@verdaccio/config": "workspace:6.0.0-6-next.4",
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
Expand Down
15 changes: 6 additions & 9 deletions packages/auth/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,25 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../utils"
"path": "../config"
},
{
"path": "../commons"
"path": "../core/commons-api"
},
{
"path": "../loaders"
"path": "../core/htpasswd"
},
{
"path": "../logger"
"path": "../loaders"
},
{
"path": "../config"
"path": "../logger"
},
{
"path": "../mock"
},
{
"path": "../core/commons-api"
},
{
"path": "../core/htpasswd"
"path": "../utils"
}
]
}
8 changes: 1 addition & 7 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@
{
"path": "../config"
},
{
"path": "../logger"
},
{
"path": "../node-api"
},
{
"path": "../core/cli-ui"
},
{
"path": "../utils"
"path": "../node-api"
}
]
}
5 changes: 1 addition & 4 deletions packages/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../utils"
},
{
"path": "../core/commons-api"
},
{
"path": "../logger"
"path": "../utils"
}
]
}
4 changes: 2 additions & 2 deletions packages/core/htpasswd/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../file-locking"
"path": "../commons-api"
},
{
"path": "../commons-api"
"path": "../file-locking"
}
]
}
4 changes: 2 additions & 2 deletions packages/core/local-storage/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../streams"
"path": "../commons-api"
},
{
"path": "../file-locking"
},
{
"path": "../commons-api"
"path": "../streams"
}
]
}
5 changes: 1 addition & 4 deletions packages/core/tarball/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../types"
"path": "../../utils"
},
{
"path": "../commons-api"
},
{
"path": "../../utils"
},
{
"path": "../url"
}
Expand Down
3 changes: 0 additions & 3 deletions packages/core/url/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../types"
},
{
"path": "../commons-api"
}
Expand Down
9 changes: 3 additions & 6 deletions packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../config"
},
{
"path": "../auth"
},
{
"path": "../commons"
"path": "../config"
},
{
"path": "../logger"
"path": "../core/commons-api"
},
{
"path": "../core/commons-api"
"path": "../logger"
}
]
}
9 changes: 3 additions & 6 deletions packages/loaders/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@
"path": "../config"
},
{
"path": "../logger"
},
{
"path": "../mock"
"path": "../core/commons-api"
},
{
"path": "../node-api"
"path": "../logger"
},
{
"path": "../core/commons-api"
"path": "../mock"
}
]
}
6 changes: 5 additions & 1 deletion packages/logger-prettify/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"references": [{ "path": "../commons" }, { "path": "../core/commons-api" }]
"references": [
{
"path": "../core/commons-api"
}
]
}
4 changes: 2 additions & 2 deletions packages/middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../core/commons-api"
"path": "../auth"
},
{
"path": "../commons"
"path": "../core/commons-api"
},
{
"path": "../logger"
Expand Down
3 changes: 3 additions & 0 deletions packages/mock/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../config"
},
{
"path": "../core/commons-api"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/node-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../core/commons-api"
"path": "../config"
},
{
"path": "../logger"
"path": "../core/cli-ui"
},
{
"path": "../server"
"path": "../core/commons-api"
},
{
"path": "../mock"
"path": "../logger"
},
{
"path": "../utils"
"path": "../mock"
},
{
"path": "../core/cli-ui"
"path": "../server"
}
]
}
6 changes: 0 additions & 6 deletions packages/plugins/active-directory/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
"references": [
{
"path": "../../core/commons-api"
},
{
"path": "../../core/streams"
},
{
"path": "../../core/types"
}
]
}
13 changes: 1 addition & 12 deletions packages/plugins/audit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@
"outDir": "./build"
},
"include": ["src/**/*", "types/*.d.ts"],
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../../core/commons-api"
},
{
"path": "../../core/streams"
},
{
"path": "../../core/types"
}
]
"exclude": ["src/**/*.test.ts"]
}
3 changes: 0 additions & 3 deletions packages/plugins/auth-memory/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"references": [
{
"path": "../../core/commons-api"
},
{
"path": "../../core/types"
}
]
}
3 changes: 0 additions & 3 deletions packages/plugins/aws-storage/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
},
{
"path": "../../core/streams"
},
{
"path": "../../core/types"
}
]
}
3 changes: 0 additions & 3 deletions packages/plugins/google-cloud-storage/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
},
{
"path": "../../core/streams"
},
{
"path": "../../core/types"
}
]
}
3 changes: 0 additions & 3 deletions packages/plugins/memory/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
},
{
"path": "../../core/streams"
},
{
"path": "../../core/types"
}
]
}
3 changes: 0 additions & 3 deletions packages/plugins/ui-theme/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"references": [
{
"path": "../../node-api"
},
{
"path": "../../core/commons-api"
}
]
}
Loading

0 comments on commit 0778eeb

Please sign in to comment.