Skip to content

Commit c6ff603

Browse files
authored
Fixes import problems (#10)
1 parent c540a72 commit c6ff603

File tree

5 files changed

+11
-39
lines changed

5 files changed

+11
-39
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,9 @@ jobs:
3030
- name: Run tests
3131
run: yarn test
3232

33-
- name: Update package.json version
34-
id: version
35-
run: |
36-
# Extract the version from the release tag
37-
TAG_VERSION=${GITHUB_REF#refs/tags/}
38-
VERSION=${TAG_VERSION#v} # Remove 'v' prefix if present
39-
40-
# Update package.json version
41-
yarn version --new-version $VERSION --no-git-tag-version
42-
43-
# Output the version for later steps
44-
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
45-
env:
46-
GITHUB_REF: ${{ github.ref }}
47-
48-
- name: Commit updated package.json
49-
run: |
50-
git config user.name "github-actions[bot]"
51-
git config user.email "github-actions[bot]@users.noreply.github.com"
52-
git add package.json yarn.lock
53-
git commit -m "chore: update package.json to version $PACKAGE_VERSION" || echo "No changes to commit"
54-
git push origin ${{ github.ref }} || echo "Nothing to push"
55-
56-
# 8. Build the project
5733
- name: Build project
5834
run: yarn build
5935

60-
# 9. Publish to npm
6136
- name: Publish to npm
6237
run: yarn publish
6338
env:

src/clients/AasRepositoryClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import type {
33
AssetInformation,
44
Reference,
55
} from '@aas-core-works/aas-core3.0-typescript/types';
6-
import * as AasRepository from '@/generated/aas-repository';
7-
import { AssetinformationThumbnailBody } from '@/generated/aas-repository/types.gen';
6+
import * as AasRepository from '../generated/aas-repository';
7+
import { AssetinformationThumbnailBody } from '../generated/aas-repository/types.gen';
88
import {
99
convertApiAasToCoreAas,
1010
convertApiAssetInformationToCoreAssetInformation,
1111
convertApiReferenceToCoreReference,
1212
convertCoreAasToApiAas,
1313
convertCoreAssetInformationToApiAssetInformation,
1414
convertCoreReferenceToApiReference,
15-
} from '@/lib/convertAasTypes';
16-
import { createCustomClient } from '@/lib/createAasRepoClient';
17-
import { GetAllAssetAdministrationShellsResponse, getAllSubmodelReferencesResponse } from '@/models/aas-repository';
15+
} from '../lib/convertAasTypes';
16+
import { createCustomClient } from '../lib/createAasRepoClient';
17+
import { GetAllAssetAdministrationShellsResponse, getAllSubmodelReferencesResponse } from '../models/aas-repository';
1818

1919
export class AasRepositoryClient {
2020
/**

src/lib/convertAasTypes.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type {
2-
AssetAdministrationShell as ApiAssetAdministrationShell,
3-
AssetInformation as ApiAssetInformation,
4-
Reference as ApiReference,
5-
} from '@/generated/aas-repository/types.gen';
61
import type {
72
AssetAdministrationShell as CoreAssetAdministrationShell,
83
AssetInformation as CoreAssetInformation,
94
Reference as CoreReference,
105
} from '@aas-core-works/aas-core3.0-typescript/types';
6+
import type {
7+
AssetAdministrationShell as ApiAssetAdministrationShell,
8+
AssetInformation as ApiAssetInformation,
9+
Reference as ApiReference,
10+
} from '../generated/aas-repository/types.gen';
1111
import { jsonization } from '@aas-core-works/aas-core3.0-typescript';
1212

1313
/**

src/models/aas-repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { PagedResultPagingMetadata } from '@/generated/aas-repository/types.gen';
21
import type { AssetAdministrationShell, Reference } from '@aas-core-works/aas-core3.0-typescript/types';
2+
import type { PagedResultPagingMetadata } from '../generated/aas-repository/types.gen';
33

44
export interface GetAllAssetAdministrationShellsResponse {
55
pagedResult: PagedResultPagingMetadata | undefined;

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"strict": true,
88
"esModuleInterop": true,
99
"baseUrl": ".",
10-
"paths": {
11-
"@/*": ["src/*"]
12-
}
1310
},
1411
"include": ["src/**/*.ts"],
1512
"exclude": ["node_modules", "**/*.test.ts", "src/generated/**/*"]

0 commit comments

Comments
 (0)