Skip to content

Commit

Permalink
chore: add package.json files for aliased paths
Browse files Browse the repository at this point in the history
this ensures that JS projects are able to find and resolve the paths to the module sub-files.
E.g. "Unable to resolve path to module '@metamask-previews/profile-sync-controller/user-storage'. (eslintimport/no-unresolved)"
  • Loading branch information
Prithpal-Sooriya committed Aug 14, 2024
1 parent 84fa5d7 commit 634a1bd
Show file tree
Hide file tree
Showing 16 changed files with 132 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/constants/index.js",
"types": "../../dist/types/NotificationServicesController/constants/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/__fixtures__/index.js",
"types": "../../dist/types/NotificationServicesController/__fixtures__/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../dist/NotificationServicesController/index.js",
"types": "../dist/types/NotificationServicesController/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/processors/index.js",
"types": "../../dist/types/NotificationServicesController/processors/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/types/index.js",
"types": "../../dist/types/NotificationServicesController/types/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/ui/index.js",
"types": "../../dist/types/NotificationServicesController/ui/index.d.ts"
}
4 changes: 3 additions & 1 deletion packages/notification-services-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
"main": "./dist/index.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist/"
"dist/",
"notification-services",
"push-services"
],
"scripts": {
"build": "tsup --config ../../tsup.config.ts --tsconfig ./tsconfig.build.json --clean",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesPushController/__fixtures__/index.js",
"types": "../../dist/types/NotificationServicesPushController/__fixtures__/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../dist/NotificationServicesPushController/index.js",
"types": "../dist/types/NotificationServicesPushController/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesPushController/types/index.js",
"types": "../../dist/types/NotificationServicesPushController/types/index.d.ts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/notification-services-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesPushController/utils/index.js",
"types": "../../dist/types/NotificationServicesPushController/utils/index.d.ts"
}
9 changes: 9 additions & 0 deletions packages/profile-sync-controller/auth/mocks/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/profile-sync-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/controllers/authentication/__fixtures__/index.js",
"types": "../../dist/types/controllers/authentication/__fixtures__/index.d.ts"
}
9 changes: 9 additions & 0 deletions packages/profile-sync-controller/auth/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/profile-sync-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../dist/controllers/authentication/index.js",
"types": "../dist/types/controllers/authentication/index.d.ts"
}
4 changes: 3 additions & 1 deletion packages/profile-sync-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
"main": "./dist/index.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist/"
"dist/",
"auth/",
"user-storage/"
],
"scripts": {
"build": "tsup --config ../../tsup.config.ts --tsconfig ./tsconfig.build.json --clean",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/profile-sync-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/controllers/user-storage/__fixtures__/index.js",
"types": "../../dist/types/controllers/user-storage/__fixtures__/index.d.ts"
}
9 changes: 9 additions & 0 deletions packages/profile-sync-controller/user-storage/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@metamask/profile-sync-controller",
"version": "1.0.0",
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../dist/controllers/user-storage/index.js",
"types": "../dist/types/controllers/user-storage/index.d.ts"
}

0 comments on commit 634a1bd

Please sign in to comment.