diff --git a/packages/components/ovh-at-internet/package.json b/packages/components/ovh-at-internet/package.json index 9babf7b386f4..25c7c183e426 100644 --- a/packages/components/ovh-at-internet/package.json +++ b/packages/components/ovh-at-internet/package.json @@ -1,7 +1,6 @@ { "name": "@ovh-ux/ovh-at-internet", "version": "0.18.0", - "private": true, "description": "ATInternet tracking library for OVHcloud.", "keywords": [ "at-internet", @@ -35,8 +34,13 @@ "start:watch": "lerna exec --stream --parallel --scope='@ovh-ux/manager-config' --include-dependencies -- yarn run dev:watch" }, "dependencies": { - "@ovh-ux/manager-config": "^8.0.1", - "@types/lodash-es": "^4.17.5", "lodash-es": "^4.17.15" + }, + "devDependencies": { + "@ovh-ux/manager-config": "^8.0.1", + "@types/lodash-es": "^4.17.5" + }, + "peerDependencies": { + "@ovh-ux/manager-config": "^8.0.1" } } diff --git a/packages/manager/modules/config/package.json b/packages/manager/modules/config/package.json index 81de85d96e58..1992f5bb831d 100644 --- a/packages/manager/modules/config/package.json +++ b/packages/manager/modules/config/package.json @@ -1,7 +1,6 @@ { "name": "@ovh-ux/manager-config", "version": "8.0.1", - "private": true, "description": "Retrieve configuration based on the environment.", "homepage": "https://github.com/ovh/manager/tree/master/packages/manager/modules/config#readme", "bugs": { @@ -13,10 +12,11 @@ "directory": "packages/manager/modules/config" }, "license": "BSD-3-Clause", + "author": "OVH SAS", "sideEffects": false, - "main": "dist/index.js", - "module": "dist/index.js", - "types": "./dist/types", + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/types/index.d.ts", "files": [ "dist" ], @@ -31,7 +31,12 @@ }, "dependencies": { "@ovh-ux/ovh-reket": "^2.1.7", - "@ovh-ux/request-tagger": "^0.4.0", "lodash-es": "^4.17.15" + }, + "devDependencies": { + "@ovh-ux/request-tagger": "^0.4.0" + }, + "peerDependencies": { + "@ovh-ux/request-tagger": "^0.4.0" } } diff --git a/packages/manager/modules/config/src/index.ts b/packages/manager/modules/config/src/index.ts index b0b0efc5335f..d749e730ca98 100644 --- a/packages/manager/modules/config/src/index.ts +++ b/packages/manager/modules/config/src/index.ts @@ -14,7 +14,7 @@ export const RESTRICTED_DEFAULTS: Record = { publicURL: '/manager/restricted/', }; -export { Environment, User }; +export { Environment }; export * from './locale'; export * from './locale/locale.constants'; diff --git a/packages/manager/modules/config/tsconfig.json b/packages/manager/modules/config/tsconfig.json index 6dc4649ccb4c..6552fe619394 100644 --- a/packages/manager/modules/config/tsconfig.json +++ b/packages/manager/modules/config/tsconfig.json @@ -1,20 +1,19 @@ { "compilerOptions": { - "target": "es2015", - "moduleResolution": "Node", - "lib": ["dom"], - "module": "esnext", - "removeComments": true, + "lib": ["dom", "es2020"], + "target": "es2020", + "types": ["vite/client", "node"], + "module": "ES2020", "outDir": "dist", - "esModuleInterop": true, + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": false, "allowSyntheticDefaultImports": true, - "noImplicitAny": true, - "sourceMap": true, - "allowJs": true, + "moduleResolution": "Node", + "isolatedModules": true, "declaration": true, - "skipLibCheck": true, - "declarationDir": "dist/types" + "declarationDir": "./dist/types", + "jsx": "react" }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist"] + "exclude": ["node_modules", "dist", "types", "**/__tests__"] }