Skip to content

Commit 346f872

Browse files
committed
Remove corepack
1 parent 25ed59c commit 346f872

5 files changed

Lines changed: 6787 additions & 9585 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
- uses: actions/setup-node@v2
1414
with:
1515
node-version: 20.x
16-
- run: corepack enable
1716
- run: yarn install
1817
- run: yarn run lint
1918

@@ -31,8 +30,6 @@ jobs:
3130
uses: actions/setup-node@v2
3231
with:
3332
node-version: ${{ matrix.node-version }}
34-
- name: Enable CorePack
35-
run: corepack enable
3633
- name: Ensure line endings are consistent
3734
run: git config --global core.autocrlf input
3835
- name: Check out repository

lib/preprocess/overridesteps/OverrideUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Resource } from 'rdf-object';
22
import { PREFIX_OO } from '../../rdf/Iris';
33
import { ErrorResourcesContext } from '../../util/ErrorResourcesContext';
44

5-
export const OVERRIDE_STEP_FIELD_NAMES = [ 'parameter', 'target', 'value' ] as const;
5+
export const OVERRIDE_STEP_FIELD_NAMES = <const> [ 'parameter', 'target', 'value' ];
66
export type OverrideStepFieldName = `${typeof OVERRIDE_STEP_FIELD_NAMES[number]}s`;
77

88
/**
@@ -19,7 +19,7 @@ Record<OverrideStepFieldName, Resource[]> {
1919

2020
for (const key of OVERRIDE_STEP_FIELD_NAMES) {
2121
const overrideKey = `override${key[0].toUpperCase()}${key.slice(1)}`;
22-
const propertiesKey = `${key}s` as const;
22+
const propertiesKey = <const> `${key}s`;
2323
const properties = step.properties[PREFIX_OO(overrideKey)];
2424
if (properties.length > 1) {
2525
throw new ErrorResourcesContext(`Detected multiple values for ${overrideKey} in Override step ${step.value}. RDF lists should be used for defining multiple values.`, {

lib/preprocess/parameterproperty/ParameterPropertyHandlerRange.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class ParameterPropertyHandlerRange implements IParameterPropertyHandler
155155
context: errorContext,
156156
};
157157
}
158-
const subConflicts = <IParamValueConflict[]> value.list.map(listElement => this
158+
const subConflicts = value.list.map(listElement => this
159159
.hasValueType(listElement, type.property.parameterRangeValue, errorContext, genericsContext))
160160
.filter(subConflict => subConflict !== undefined);
161161
return subConflicts.length === 0 ?
@@ -192,7 +192,7 @@ export class ParameterPropertyHandlerRange implements IParameterPropertyHandler
192192
return {
193193
description: `not all intersection values are valid`,
194194
context: errorContext,
195-
causes: <IParamValueConflict[]> subConflicts.filter(subConflict => subConflict !== undefined),
195+
causes: subConflicts.filter(subConflict => subConflict !== undefined),
196196
};
197197
}
198198
if (type.isA('ParameterRangeTuple')) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"author": "Ruben Taelman <ruben.taelman@ugent.be>",
2121
"license": "MIT",
22-
"packageManager": "yarn@4.0.1",
22+
"packageManager": "yarn@1.22.22",
2323
"scripts": {
2424
"test": "yarn test:jest",
2525
"test:jest": "jest",
@@ -51,7 +51,7 @@
5151
"winston": "^3.3.3"
5252
},
5353
"devDependencies": {
54-
"@rubensworks/eslint-config": "^1.0.1",
54+
"@rubensworks/eslint-config": "1.0.1",
5555
"@types/jest": "^29.0.0",
5656
"@types/stream-to-array": "^2.3.0",
5757
"@types/streamify-string": "^1.0.0",

0 commit comments

Comments
 (0)