Skip to content

Commit

Permalink
chore: use yarn 4 for examples (#4663)
Browse files Browse the repository at this point in the history
* use yarn 4 for examples

* chore: update .gitignore

* chore: upgrade yarn a little differently this time

---------

Co-authored-by: Håkon Flatval <hakon.flatval@cognite.com>
  • Loading branch information
nabati and haakonflatval-cognite authored Jul 15, 2024
1 parent 3fa62ce commit 0d03388
Show file tree
Hide file tree
Showing 5 changed files with 5,507 additions and 3,774 deletions.
13 changes: 3 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ target
**/yarn-error.log*

# yarn
documentation/.yarn/
documentation/docs/.yarn/
viewer/.yarn/*
!/viewer/.yarn/releases
!/viewer/.yarn/releases/*

react-components/.yarn/*
!/react-components/.yarn/releases
!/react-components/.yarn/releases/*
**/.yarn/cache
**/.yarn/install-state.gz

**/.env
**/.cdf-env.json
Expand Down Expand Up @@ -61,4 +54,4 @@ examples/public/
documentation/.docusaurus
documentation/generated
documentation/docs/api
/react-components/stories/public/cadModel
/react-components/stories/public/cadModel
894 changes: 894 additions & 0 deletions examples/.yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions examples/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
5 changes: 3 additions & 2 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@azure/msal-browser": "^3.0.0",
"@cognite/reveal": "link:../viewer",
"@cognite/sdk": "link:../viewer/node_modules/@cognite/sdk",
"dat.gui": "^0.7.7",
"buffer": "^6.0.3",
"dat.gui": "^0.7.7",
"lodash": "^4.17.21",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down Expand Up @@ -63,5 +63,6 @@
"last 1 firefox version",
"last 1 safari version"
]
}
},
"packageManager": "yarn@4.3.1"
}
Loading

0 comments on commit 0d03388

Please sign in to comment.