Skip to content

Commit

Permalink
Clean up npm setup (#2201)
Browse files Browse the repository at this point in the history
This cleans up the npm packages & workspaces:

* All recurrent dependencies (`@dfinity` ones) are deduplicated (to the same
  version as the II app)
* Unnecessary dev dependencies are removed from vc_issuer
* `tsconfig.all.json` is formatted
* `tsconfig.json`s are cleaned up to remove redundant `./`
  • Loading branch information
nmattia authored Jan 12, 2024
1 parent 06a3e4b commit a621ef5
Show file tree
Hide file tree
Showing 9 changed files with 2,332 additions and 15,565 deletions.
10 changes: 5 additions & 5 deletions demos/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"type": "module",
"private": true,
"dependencies": {
"@dfinity/agent": "^0.19.2",
"@dfinity/auth-client": "^0.19.2",
"@dfinity/candid": "^0.19.2",
"@dfinity/identity": "^0.19.2",
"@dfinity/principal": "^0.19.2",
"@dfinity/agent": "*",
"@dfinity/auth-client": "*",
"@dfinity/candid": "*",
"@dfinity/identity": "*",
"@dfinity/principal": "*",
"buffer": "^6.0.3",
"jose": "^5.1.2",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion demos/test-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./../../tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["vite.config.ts", "./src"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
19 changes: 7 additions & 12 deletions demos/vc_issuer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
"private": true,
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@dfinity/agent": "^0.19.3",
"@dfinity/auth-client": "^0.19.3",
"@dfinity/candid": "^0.19.3",
"@dfinity/identity": "^0.19.3",
"@dfinity/principal": "^0.19.3",
"@dfinity/utils": "^0.0.20",
"@dfinity/agent": "*",
"@dfinity/auth-client": "*",
"@dfinity/candid": "*",
"@dfinity/identity": "*",
"@dfinity/principal": "*",
"@dfinity/utils": "*",
"buffer": "^6.0.3",
"html-minifier-terser": "^7.2.0",
"http-proxy": "^1.18.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite-plugin-compression": "^0.5.1"
"react-dom": "^18.2.0"
},
"scripts": {
"dev": "vite --config ./vite.config.ts",
Expand All @@ -28,8 +25,6 @@
},
"devDependencies": {
"@dfinity/internet-identity-vite-plugins": "*",
"@types/html-minifier-terser": "^7.0.0",
"@types/http-proxy": "^1.17.14",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion demos/vc_issuer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./../../tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["vite.config.ts", "./app"],
"compilerOptions": {
"composite": true,
Expand Down
Loading

0 comments on commit a621ef5

Please sign in to comment.