Skip to content

Commit

Permalink
Update tsconfig modules to node16 to allow imports from commons
Browse files Browse the repository at this point in the history
Added scopes as an export in the commons package
  • Loading branch information
tumbledwyer committed Oct 8, 2024
1 parent 786bf15 commit 07c87a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/components/ScopedComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { usePermissions } from '@client/hooks/useAuthorization'
import { Scope } from '@opencrvs/commons/build/dist/scopes'
import { Scope } from '@opencrvs/commons/scopes'

interface ScopeComponentProps {
scopes?: Scope[]
Expand Down
4 changes: 2 additions & 2 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"module": "Node16",
"moduleResolution": "Node16",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
3 changes: 2 additions & 1 deletion packages/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"./authentication": "./build/dist/authentication.js",
"./http": "./build/dist/http.js",
"./fixtures": "./build/dist/fixtures.js",
"./assignment": "./build/dist/assignment.js"
"./assignment": "./build/dist/assignment.js",
"./scopes": "./build/dist/scopes.js"
},
"scripts": {
"start": "yarn build:watch",
Expand Down

0 comments on commit 07c87a0

Please sign in to comment.