mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 07:56:02 +01:00
fix(package): specify side-effects and do not bundle output
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
"description": "JS/TS wrapper for ox_lib exports",
|
"description": "JS/TS wrapper for ox_lib exports",
|
||||||
"main": "./shared/index.js",
|
"main": "./shared/index.js",
|
||||||
"types": "./shared/index.d.ts",
|
"types": "./shared/index.d.ts",
|
||||||
|
"sideEffects": ["./shared/resource/locale/index.js"],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"compile": "tsc",
|
"compile": "tsc",
|
||||||
"prepare": "npm run compile"
|
"prepare": "npm run compile"
|
||||||
|
|||||||
1113
package/pnpm-lock.yaml
generated
1113
package/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
export * from './resource';
|
export * from './resource';
|
||||||
|
|
||||||
// https://www.raygesualdo.com/posts/flattening-object-keys-with-typescript-types/
|
// https://www.raygesualdo.com/posts/flattening-object-keys-with-typescript-types/
|
||||||
export type FlattenObjectKeys<T extends Record<string, unknown>, Key = keyof T> = Key extends string
|
export type FlattenObjectKeys<T extends Record<string, any>, Key = keyof T> = Key extends string
|
||||||
? T[Key] extends Record<string, unknown>
|
? T[Key] extends Record<string, unknown>
|
||||||
? `${Key}.${FlattenObjectKeys<T[Key]>}`
|
? `${Key}.${FlattenObjectKeys<T[Key]>}`
|
||||||
: `${Key}`
|
: `${Key}`
|
||||||
|
|||||||
@@ -2,16 +2,15 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"module": "es2020",
|
"module": "es2022",
|
||||||
"types": ["@types/node", "@citizenfx/client", "@citizenfx/server"],
|
"types": ["@types/node", "@citizenfx/client", "@citizenfx/server"],
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"target": "es2021",
|
"target": "esnext",
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
"lib": ["es2021"],
|
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "node",
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"noImplicitAny": true
|
"noImplicitAny": true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user