Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to modern yarn #113

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@contentgrid'
- run: yarn install --frozen-lockfile
- run: |
corepack enable
yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
coverage/
build/
.yarn/
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */

/* Language and Environment */
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"target": "ES2019", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"build": "lerna exec yarn prepare",
"test": "lerna exec yarn test"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/plugin-transform-runtime": "^7.22.9",
Expand All @@ -27,5 +26,5 @@
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
"packageManager": "yarn@4.5.0"
}
3 changes: 1 addition & 2 deletions packages/fetch-hook-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@
"type": "git",
"url": "git+https://github.com/xenit-eu/contentgrid-ts.git",
"directory": "packages/fetch-hook-authentication"
},
"devDependencies": {}
}
}
6 changes: 5 additions & 1 deletion packages/fetch-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "@contentgrid/fetch-hooks",
"version": "0.0.1-alpha.0",
"description": "Insert hooks before/after fetch()",
"keywords": ["fetch", "typescript", "hooks"],
"keywords": [
"fetch",
"typescript",
"hooks"
],
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
13 changes: 10 additions & 3 deletions packages/hal-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
"name": "@contentgrid/hal-forms",
"version": "0.0.1-alpha.0",
"description": "HAL-FORMS models",
"keywords": ["HAL-FORMS", "HAL", "json", "rest", "hypermedia", "HATEOAS"],
"keywords": [
"HAL-FORMS",
"HAL",
"json",
"rest",
"hypermedia",
"HATEOAS"
],
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down Expand Up @@ -40,9 +47,9 @@
},
"license": "MIT",
"dependencies": {
"@contentgrid/typed-fetch": "^0.0.1-alpha.0",
"@contentgrid/hal": "^0.0.1-alpha.0",
"@babel/runtime": "^7.22.10",
"@contentgrid/hal": "^0.0.1-alpha.0",
"@contentgrid/typed-fetch": "^0.0.1-alpha.0",
"tslib": "^2.6.1"
},
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion packages/hal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"name": "@contentgrid/hal",
"version": "0.0.1-alpha.0",
"description": "Hypertext Application Language resource models",
"keywords": ["HAL", "json", "rest", "hypermedia", "HATEOAS"],
"keywords": [
"HAL",
"json",
"rest",
"hypermedia",
"HATEOAS"
],
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion packages/problem-details/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"name": "@contentgrid/problem-details",
"version": "0.0.1-alpha.0",
"description": "RFC9547 Problem Details types and helpers",
"keywords": ["RFC7807", "RFC9547", "problem", "problem-details"],
"keywords": [
"RFC7807",
"RFC9547",
"problem",
"problem-details"
],
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/typed-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "@contentgrid/typed-fetch",
"version": "0.0.1-alpha.0",
"description": "Add typing information to fetch() requests and responses",
"keywords": ["fetch", "typescript"],
"keywords": [
"fetch",
"typescript"
],
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion packages/uri-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "@contentgrid/uri-template",
"version": "0.0.1-alpha.0",
"description": "RFC6570 URI template parser and expander",
"keywords": ["RFC6570", "uri-template", "uri"],
"keywords": [
"RFC6570",
"uri-template",
"uri"
],
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
Loading