Skip to content

Commit

Permalink
Merge pull request #320 from NorskHelsenett/feature/exporting-enums-i…
Browse files Browse the repository at this point in the history
…n-typescript

Exporting enums in typescript
  • Loading branch information
rogerwesterbo authored Jan 28, 2025
2 parents 1761520 + 297509b commit ab49236
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions typescript/models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Npm publish token in environment variables
## Build

```bash
bun i
npm i
```

## Test locally
Expand All @@ -27,7 +27,7 @@ To use in another `package.json`
Replace dependency url, while testing to example this:

```json
"@rork8s/ror-resources": "file:../../../ror-typescript-resource-models/rork8s-ror-resources-0.0.6.tgz",
"@rork8s/ror-resources": "file:../<ref to repo path>/typescript/models/rork8s-ror-resources-0.0.0.tgz",
```

## Publish
Expand Down
13 changes: 7 additions & 6 deletions typescript/models/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"compilerOptions": {
"target": "es5",
"allowSyntheticDefaultImports": true,
"declaration": true,
"esModuleInterop": true,
"lib": ["ES5", "ES6", "ES2020", "ES2021", "ES2022", "ES2023"],
"module": "ES2020",
"moduleResolution": "node",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"moduleResolution": "bundler",
"esModuleInterop": true,
"declaration": true,
"sourceMap": true,
"lib": ["ES5", "ES6", "ES2020", "ES2021", "ES2022", "ES2023"]
"strict": true,
"target": "es5"
},
"exclude": ["node_modules"],
"include": ["src/**/*.ts"]
Expand Down

0 comments on commit ab49236

Please sign in to comment.