File tree Expand file tree Collapse file tree 5 files changed +11
-39
lines changed Expand file tree Collapse file tree 5 files changed +11
-39
lines changed Original file line number Diff line number Diff line change 30
30
- name : Run tests
31
31
run : yarn test
32
32
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
57
33
- name : Build project
58
34
run : yarn build
59
35
60
- # 9. Publish to npm
61
36
- name : Publish to npm
62
37
run : yarn publish
63
38
env :
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ import type {
3
3
AssetInformation ,
4
4
Reference ,
5
5
} 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' ;
8
8
import {
9
9
convertApiAasToCoreAas ,
10
10
convertApiAssetInformationToCoreAssetInformation ,
11
11
convertApiReferenceToCoreReference ,
12
12
convertCoreAasToApiAas ,
13
13
convertCoreAssetInformationToApiAssetInformation ,
14
14
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' ;
18
18
19
19
export class AasRepositoryClient {
20
20
/**
Original file line number Diff line number Diff line change 1
- import type {
2
- AssetAdministrationShell as ApiAssetAdministrationShell ,
3
- AssetInformation as ApiAssetInformation ,
4
- Reference as ApiReference ,
5
- } from '@/generated/aas-repository/types.gen' ;
6
1
import type {
7
2
AssetAdministrationShell as CoreAssetAdministrationShell ,
8
3
AssetInformation as CoreAssetInformation ,
9
4
Reference as CoreReference ,
10
5
} 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' ;
11
11
import { jsonization } from '@aas-core-works/aas-core3.0-typescript' ;
12
12
13
13
/**
Original file line number Diff line number Diff line change 1
- import type { PagedResultPagingMetadata } from '@/generated/aas-repository/types.gen' ;
2
1
import type { AssetAdministrationShell , Reference } from '@aas-core-works/aas-core3.0-typescript/types' ;
2
+ import type { PagedResultPagingMetadata } from '../generated/aas-repository/types.gen' ;
3
3
4
4
export interface GetAllAssetAdministrationShellsResponse {
5
5
pagedResult : PagedResultPagingMetadata | undefined ;
Original file line number Diff line number Diff line change 7
7
"strict" : true ,
8
8
"esModuleInterop" : true ,
9
9
"baseUrl" : " ." ,
10
- "paths" : {
11
- "@/*" : [" src/*" ]
12
- }
13
10
},
14
11
"include" : [" src/**/*.ts" ],
15
12
"exclude" : [" node_modules" , " **/*.test.ts" , " src/generated/**/*" ]
You can’t perform that action at this time.
0 commit comments