Skip to content

Commit

Permalink
feat(package): add citizen typings
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Sep 17, 2022
1 parent ef4595c commit 87310e7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions package/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": ".",
"types": ["@citizenfx/client"]
},
"include": ["./**/*"],
"exclude": ["**/node_modules"]
Expand Down
2 changes: 2 additions & 0 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
},
"license": "LGPL-3.0",
"dependencies": {
"@citizenfx/client": "2.0.5885-1",
"@citizenfx/server": "2.0.5885-1",
"@fortawesome/fontawesome-common-types": "6.1.1",
"@types/node": "16.9.1",
"@types/react": "^18.0.20",
Expand Down
12 changes: 12 additions & 0 deletions package/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": ".",
"types": ["@citizenfx/server"]
},
"include": ["./**/*"],
"exclude": ["**/node_modules"]
Expand Down
1 change: 1 addition & 0 deletions package/shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": ".",
"types": ["@citizenfx/client", "@citizenfx/server"]
},
"include": ["./**/*"],
"exclude": ["**/node_modules"]
Expand Down
4 changes: 2 additions & 2 deletions package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"strict": true,
"module": "CommonJS",
"types": ["@types/node"],
"types": ["@types/node", "@citizenfx/client", "@citizenfx/server"],
"declaration": true,
"sourceMap": true,
"target": "ESNext",
Expand All @@ -18,6 +18,6 @@
"noImplicitAny": false,
"noEmit": false
},
"include": ["client"],
"include": ["client", "server", "shared"],
"exclude": ["**/node_modules"]
}

0 comments on commit 87310e7

Please sign in to comment.