diff --git a/package.json b/package.json index 4fb69e9..22287c3 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "@testing-library/react": "^13.4.0", "@types/jest": "29.4.4", "@types/node": "18.19.17", + "@types/react": "^18.2.67", "@typescript-eslint/eslint-plugin": "6.21.0", "@typescript-eslint/parser": "6.21.0", "eslint": "^8.56.0", diff --git a/packages/core/package.json b/packages/core/package.json index d0ee1f5..354601d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -2,11 +2,10 @@ "name": "@injectable-ts/core", "version": "1.0.0-alpha.5", "sideEffects": false, - "main": "index.cjs.js", - "module": "index.esm.js", + "main": "./index.cjs.js", + "module": "./index.esm.js", "types": "./index.cjs.d.ts", "dependencies": { - "@frp-ts/utils": "^1.0.0-beta.3", - "tslib": "^2.6.2" + "@frp-ts/utils": "^1.0.0-beta.3" } } diff --git a/packages/react/package.json b/packages/react/package.json index 083ca02..59eb3be 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -2,17 +2,13 @@ "name": "@injectable-ts/react", "version": "1.0.0-alpha.5", "sideEffects": false, - "main": "index.cjs.js", - "module": "index.esm.js", + "main": "./index.cjs.js", + "module": "./index.esm.js", "types": "./index.cjs.d.ts", "dependencies": { - "@injectable-ts/core": "^1.0.0-alpha.5" - }, - "devDependencies": { - "@types/react": ">=17.0.0", - "react": ">=17.0.0" + "@injectable-ts/core": "^1.0.0-beta.0" }, "peerDependencies": { - "react": ">=17.0.0" + "react": "^18.2.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c14d635..77e8609 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,6 +18,7 @@ importers: '@testing-library/react': ^13.4.0 '@types/jest': 29.4.4 '@types/node': 18.19.17 + '@types/react': ^18.2.67 '@typescript-eslint/eslint-plugin': 6.21.0 '@typescript-eslint/parser': 6.21.0 eslint: ^8.56.0 @@ -54,6 +55,7 @@ importers: '@testing-library/react': 13.4.0_biqbaboplfbrettd7655fr4n2y '@types/jest': 29.4.4 '@types/node': 18.19.17 + '@types/react': 18.2.67 '@typescript-eslint/eslint-plugin': 6.21.0_qvx5l6wcv2c6baydm2v34ogvwy '@typescript-eslint/parser': 6.21.0_xdgzedli73k7lw4xlyzszm74om eslint: 8.56.0 @@ -79,21 +81,14 @@ importers: packages/core: specifiers: '@frp-ts/utils': ^1.0.0-beta.3 - tslib: ^2.6.2 dependencies: - '@frp-ts/utils': 1.0.0-beta.3_tslib@2.6.2 - tslib: 2.6.2 + '@frp-ts/utils': 1.0.0-beta.3 packages/react: specifiers: - '@injectable-ts/core': ^1.0.0-alpha.5 - '@types/react': '>=17.0.0' - react: '>=17.0.0' + '@injectable-ts/core': ^1.0.0-beta.0 dependencies: '@injectable-ts/core': link:../core - devDependencies: - '@types/react': 18.0.26 - react: 18.2.0 packages: @@ -1589,12 +1584,10 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@frp-ts/utils/1.0.0-beta.3_tslib@2.6.2: + /@frp-ts/utils/1.0.0-beta.3: resolution: {integrity: sha512-cW7dfip8dgspExzDdYQISPvSq1sKyWaY0DJ9AaYtqRxVNrS+j5/S2wpuSkrXlf47k5hhYq6Lu9q9n2uu6kPGQA==} peerDependencies: tslib: ^2.3.1 - dependencies: - tslib: 2.6.2 dev: false /@gar/promisify/1.1.3: @@ -3561,11 +3554,11 @@ packages: /@types/react-dom/18.0.9: resolution: {integrity: sha512-qnVvHxASt/H7i+XG1U1xMiY5t+IHcPGUK7TDMDzom08xa7e86eCeKOiLZezwCKVxJn6NEiiy2ekgX8aQssjIKg==} dependencies: - '@types/react': 18.0.26 + '@types/react': 18.2.67 dev: true - /@types/react/18.0.26: - resolution: {integrity: sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==} + /@types/react/18.2.67: + resolution: {integrity: sha512-vkIE2vTIMHQ/xL0rgmuoECBCkZFZeHr49HeWSc24AptMbNRo7pwSBvj73rlJJs9fGKj0koS+V7kQB1jHS0uCgw==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 @@ -10557,6 +10550,7 @@ packages: /tslib/2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + dev: true /tsutils/3.21.0_typescript@5.3.3: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}