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

Update Yarn 1 lockfile for downstream build #1273

Merged
merged 5 commits into from
Dec 13, 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
9 changes: 9 additions & 0 deletions .deps/problems.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Dependency analysis

## UNUSED Excludes

1. `[email protected]`

## UNRESOLVED Production dependencies

1. `[email protected]`
22 changes: 11 additions & 11 deletions .deps/prod.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| [`@codemirror/[email protected]`](https://github.com/codemirror/language.git) | MIT | clearlydefined |
| [`@codemirror/[email protected]`](https://github.com/codemirror/state.git) | MIT | clearlydefined |
| [`@codemirror/[email protected]`](https://github.com/codemirror/view.git) | MIT | clearlydefined |
| [`@devfile/[email protected]1721400636`](https://github.com/GIT_USER_ID/GIT_REPO_ID.git) | Apache-2.0 | clearlydefined |
| [`@eclipse-che/che-devworkspace-generator@7.90.0-next-4510df7`](git+https://github.com/devfile/devworkspace-generator.git) | EPL-2.0 | ecd.che |
| [`@devfile/[email protected]1725380172`](https://github.com/GIT_USER_ID/GIT_REPO_ID.git) | Apache-2.0 | clearlydefined |
| [`@eclipse-che/che-devworkspace-generator@7.95.0`](git+https://github.com/devfile/devworkspace-generator.git) | EPL-2.0 | ecd.che |
| [`@fastify/[email protected]`](git+https://github.com/fastify/accept-negotiator.git) | MIT | clearlydefined |
| [`@fastify/[email protected]`](git+https://github.com/fastify/ajv-compiler.git) | MIT | clearlydefined |
| [`@fastify/[email protected]`](https://github.com/fastify/busboy.git) | MIT | clearlydefined |
Expand Down Expand Up @@ -78,7 +78,7 @@
| [`[email protected]`](https://github.com/npm/abbrev-js.git) | ISC | clearlydefined |
| [`[email protected]`](git+https://github.com/mysticatea/abort-controller.git) | MIT | #7592 |
| [`[email protected]`](git+https://github.com/jsumners/abstract-logging.git) | MIT | clearlydefined |
| [`[email protected]`](https://github.com/TooTallNate/proxy-agents.git) | MIT | clearlydefined |
| [`[email protected]`](https://github.com/TooTallNate/proxy-agents.git) | MIT | #17896 |
| `[email protected]` | MIT | clearlydefined |
| [`[email protected]`](git+https://github.com/ajv-validator/ajv-formats.git) | MIT | clearlydefined |
| [`[email protected]`](git+https://github.com/ajv-validator/ajv-formats.git) | MIT | clearlydefined |
Expand Down Expand Up @@ -172,7 +172,7 @@
| [`[email protected]`](git://github.com/mafintosh/duplexify) | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| [`[email protected]`](https://github.com/quartzjer/ecc-jsbn.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/ecc-jsbn/0.1.2) |
| [`[email protected]`]([email protected]:indutny/elliptic) | MIT | clearlydefined |
| [`[email protected]`]([email protected]:indutny/elliptic) | MIT | |
| [`[email protected]`](https://github.com/mathiasbynens/emoji-regex.git) | MIT | clearlydefined |
| [`[email protected]`](https://github.com/mathiasbynens/emoji-regex.git) | MIT | clearlydefined |
| `[email protected]` | MIT | #1016 |
Expand Down Expand Up @@ -253,7 +253,7 @@
| `[email protected]` | MIT | clearlydefined |
| [`[email protected]`](https://github.com/TooTallNate/proxy-agents.git) | MIT | clearlydefined |
| [`[email protected]`](git://github.com/joyent/node-http-signature.git) | MIT | #2732 |
| [`[email protected]`](https://github.com/TooTallNate/proxy-agents.git) | MIT | clearlydefined |
| [`[email protected]`](https://github.com/TooTallNate/proxy-agents.git) | MIT | #17900 |
| `[email protected]` | ISC | clearlydefined |
| [`[email protected]`](git://github.com/ashtuchkin/iconv-lite.git) | MIT | clearlydefined |
| [`[email protected]`](git://github.com/feross/ieee754.git) | BSD-3-Clause | clearlydefined |
Expand Down Expand Up @@ -326,20 +326,20 @@
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | #17409 |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | #17395 |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | #17416 |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | #17394 |
| `[email protected]` | MIT | #17405 |
| `[email protected]` | MIT | clearlydefined |
| [`[email protected]`]([email protected]:indutny/miller-rabin) | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
Expand Down Expand Up @@ -559,6 +559,6 @@
| [`[email protected]`](https://github.com/npm/wrappy) | ISC | clearlydefined |
| [`[email protected]`](git+https://github.com/isaacs/yallist.git) | ISC | clearlydefined |
| [`[email protected]`](git+https://github.com/isaacs/yallist.git) | BlueOak-1.0.0 | clearlydefined |
| [`[email protected]`](https://eemeli.org/yaml/) | ISC | clearlydefined |
| [`[email protected]`](https://eemeli.org/yaml/) | ISC | #17714 |
| `[email protected]` | MIT | clearlydefined |
| `[email protected]` | MIT | clearlydefined |
3 changes: 3 additions & 0 deletions build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ COPY ${FRONTEND}/package.json /dashboard/${FRONTEND}/
ENV BACKEND=packages/dashboard-backend
COPY ${BACKEND}/package.json /dashboard/${BACKEND}/

ENV DEVFILE_API=packages/devfile-api
COPY ${DEVFILE_API}/package.json /dashboard/${DEVFILE_API}/

WORKDIR /dashboard
RUN yarn install --network-timeout 3600000
COPY packages/ /dashboard/packages
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"packages": [
"packages/common",
"packages/dashboard-backend",
"packages/dashboard-frontend"
"packages/dashboard-frontend",
"packages/devfile-api"
]
},
"bugs": {
Expand All @@ -29,7 +30,7 @@
"license:generate": "$PWD/scripts/container_tool.sh run --rm -t -v $PWD/:/workspace/project quay.io/che-incubator/dash-licenses:next",
"test": "yarn run pretest && yarn wrksps test --no-cache",
"test:check": "yarn run pretest && yarn workspace @eclipse-che/dashboard-frontend test --config=jest.config.check.js",
"pretest": "yarn workspace @eclipse-che/common run build",
"pretest": "yarn workspace @eclipse-che/common run build && yarn workspace devfile-api run build",
"test:coverage": "yarn run pretest && yarn wrksps test --coverage",
"format:check": "yarn wrksps format:check",
"format:fix": "yarn wrksps format:fix",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:watch": "yarn test --watch"
},
"devDependencies": {
"@devfile/api": "2.3.0-1721400636",
"@devfile/api": "2.3.0-1725380172",
"@kubernetes/client-node": "^0.22.1",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/dashboard-backend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ module.exports = {
moduleNameMapper: {
// mapping for absolute imports (see tsconfig.json)
'^@/(.*)$': '<rootDir>/src/$1',

// not everything we need is exported from the package
// so we need to alias the rest
'@devfile/api/(.*)$': '<rootDir>/../../node_modules/@devfile/api/$1.ts',
},
transformIgnorePatterns: [
'node_modules/(?!@devfile/api)',
],
collectCoverageFrom: [
...base.collectCoverageFrom,

Expand Down
1 change: 0 additions & 1 deletion packages/dashboard-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
],
"license": "EPL-2.0",
"dependencies": {
"@devfile/api": "2.3.0-1721400636",
"@eclipse-che/che-devworkspace-generator": "7.95.0",
"@fastify/cors": "^9.0.1",
"@fastify/error": "^3.4.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@

/* eslint-disable @typescript-eslint/no-unused-vars */

import { V1alpha2DevWorkspace } from '@devfile/api';
import { devworkspaceGroup, devworkspaceLatestVersion, devworkspacePlural } from '@devfile/api/api';
import { api } from '@eclipse-che/common';
import * as mockClient from '@kubernetes/client-node';
import { CustomObjectsApi } from '@kubernetes/client-node';
import {
devworkspaceGroup,
devworkspaceLatestVersion,
devworkspacePlural,
V1alpha2DevWorkspace,
} from 'devfile-api';
import { IncomingMessage } from 'http';

import { DevWorkspaceApiService } from '@/devworkspaceClient/services/devWorkspaceApi';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspace } from '@devfile/api';
import { devworkspaceGroup, devworkspaceLatestVersion, devworkspacePlural } from '@devfile/api/api';
import * as mockClient from '@kubernetes/client-node';
import { CustomObjectsApi } from '@kubernetes/client-node';
import {
devworkspaceGroup,
devworkspaceLatestVersion,
devworkspacePlural,
V1alpha2DevWorkspace,
} from 'devfile-api';

import {
CheClusterCustomResource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

/* eslint-disable @typescript-eslint/no-unused-vars */

import { V1alpha2DevWorkspaceTemplate } from '@devfile/api';
import { api } from '@eclipse-che/common';
import * as mockClient from '@kubernetes/client-node';
import { CustomObjectsApi } from '@kubernetes/client-node';
import {
devworkspacetemplateGroup,
devworkspacetemplateLatestVersion,
devworkspacetemplatePlural,
} from '@devfile/api/api';
import { api } from '@eclipse-che/common';
import * as mockClient from '@kubernetes/client-node';
import { CustomObjectsApi } from '@kubernetes/client-node';
V1alpha2DevWorkspaceTemplate,
} from 'devfile-api';

import {
DevWorkspaceTemplateApiService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V230Devfile } from '@devfile/api';
import { V1ConfigMapList } from '@kubernetes/client-node/dist/gen/model/v1ConfigMapList';
import { V230Devfile } from 'devfile-api';
import http from 'http';
import * as yaml from 'js-yaml';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspace } from '@devfile/api';
import { devworkspaceGroup, devworkspaceLatestVersion, devworkspacePlural } from '@devfile/api/api';
import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
import { V1Status } from '@kubernetes/client-node';
import {
devworkspaceGroup,
devworkspaceLatestVersion,
devworkspacePlural,
V1alpha2DevWorkspace,
} from 'devfile-api';
import http, { IncomingHttpHeaders } from 'http';

import { createError } from '@/devworkspaceClient/services/helpers/createError';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspace } from '@devfile/api';
import { devworkspaceGroup, devworkspaceLatestVersion, devworkspacePlural } from '@devfile/api/api';
import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
import { V1Status } from '@kubernetes/client-node';
import {
devworkspaceGroup,
devworkspaceLatestVersion,
devworkspacePlural,
V1alpha2DevWorkspace,
} from 'devfile-api';
import http from 'http';

import { prepareCustomObjectWatch } from '@/devworkspaceClient/services/helpers/prepareCustomObjectWatch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspaceTemplate } from '@devfile/api';
import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
import {
devworkspacetemplateGroup,
devworkspacetemplateLatestVersion,
devworkspacetemplatePlural,
} from '@devfile/api/api';
import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
V1alpha2DevWorkspaceTemplate,
} from 'devfile-api';

import { createError } from '@/devworkspaceClient/services/helpers/createError';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V230Devfile } from '@devfile/api';
import { V1ConfigMapList } from '@kubernetes/client-node/dist/gen/model/v1ConfigMapList';
import { V230Devfile } from 'devfile-api';
import http from 'http';
import * as yaml from 'js-yaml';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V230DevfileComponents } from '@devfile/api';
import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
import { V230DevfileComponents } from 'devfile-api';
import { readFileSync } from 'fs';
import path from 'path';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
* Red Hat, Inc. - initial API and implementation
*/

import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
import {
V1alpha2DevWorkspace,
V1alpha2DevWorkspaceTemplate,
V230Devfile,
V230DevfileComponents,
} from '@devfile/api';
import { api } from '@eclipse-che/common';
import * as k8s from '@kubernetes/client-node';
} from 'devfile-api';
import { IncomingHttpHeaders } from 'http';

import { MessageListener } from '@/services/types/Observer';
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-backend/src/models/restParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspace, V1alpha2DevWorkspaceTemplate } from '@devfile/api';
import { api } from '@eclipse-che/common';
import { V1alpha2DevWorkspace, V1alpha2DevWorkspaceTemplate } from 'devfile-api';

export interface ISchemaParams {
[key: string]: unknown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspaceTemplate } from '@devfile/api';
import { Main as DevworkspaceGenerator } from '@eclipse-che/che-devworkspace-generator/lib/main';
import { api } from '@eclipse-che/common';
import { V1alpha2DevWorkspaceTemplate } from 'devfile-api';
import { FastifyInstance, FastifyRequest } from 'fastify';
import { dump } from 'js-yaml';

Expand All @@ -37,8 +37,6 @@ export function registerDevworkspaceResourcesRoute(instance: FastifyInstance) {
{
devfileContent,
editorPath,
pluginRegistryUrl: undefined,
editorEntry: undefined,
editorContent,
projects: [],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

/* eslint-disable @typescript-eslint/no-unused-vars */

import { api } from '@eclipse-che/common';
import {
V1alpha2DevWorkspace,
V1alpha2DevWorkspaceTemplate,
V230Devfile,
V230DevfileComponents,
} from '@devfile/api';
import { api } from '@eclipse-che/common';
} from 'devfile-api';
import { IncomingHttpHeaders } from 'http';

import {
Expand Down
4 changes: 0 additions & 4 deletions packages/dashboard-backend/webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ module.exports = () => {
alias: {
// alias for absolute imports (see tsconfig.json)
'@': path.resolve(__dirname, 'src/'),

// not everything we need is exported from the package
// so we need to alias the rest
'@devfile/api/api': path.resolve(__dirname, '../../node_modules/@devfile/api/api.ts'),
},
},
resolveLoader: {},
Expand Down
1 change: 0 additions & 1 deletion packages/dashboard-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"sanitize-html": "^2.11.0"
},
"devDependencies": {
"@devfile/api": "2.3.0-1721400636",
"@eclipse-che/api": "^7.86.0",
"@kubernetes/client-node": "^0.22.1",
"@react-mock/state": "^0.1.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V230DevfileProjects, V230DevfileProjectsItemsGit } from '@devfile/api';
import common from '@eclipse-che/common';
import { V230DevfileProjects, V230DevfileProjectsItemsGit } from 'devfile-api';

import { getProjectFromLocation } from '@/components/WorkspaceProgress/CreatingSteps/Apply/Devfile/getProjectFromLocation';
import devfileApi from '@/services/devfileApi';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V230DevfileProjects } from '@devfile/api';
import { V230DevfileProjects } from 'devfile-api';

import { FactoryLocationAdapter } from '@/services/factory-location-adapter';
import { getProjectName } from '@/services/helpers/getProjectName';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Red Hat, Inc. - initial API and implementation
*/

import { V1alpha2DevWorkspace } from '@devfile/api';
import { V1alpha2DevWorkspace } from 'devfile-api';

import prepareResources from '@/components/WorkspaceProgress/CreatingSteps/Apply/Resources/prepareResources';
import { DEVWORKSPACE_STORAGE_TYPE_ATTR } from '@/services/devfileApi/devWorkspace/spec/template';
Expand Down
Loading