Skip to content

Commit

Permalink
Update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannmoinet committed Apr 26, 2024
1 parent 8b43064 commit 4a5e529
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 62 deletions.
26 changes: 5 additions & 21 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,22 @@
"author": "Datadog",
"main": "./src/index.js",
"exports": {
"./hooks/datadog": {
"types": "./src/hooks/datadog/index.ts",
"import": "./src/hooks/datadog/index.ts",
"require": "./src/hooks/datadog/index.ts"
},
"./*": {
"types": "./src/*.ts",
"import": "./src/*.ts",
"require": "./src/*.ts"
}
"./hooks/datadog": "./src/hooks/datadog/index.ts",
"./*": "./src/*.ts"
},
"publishConfig": {
"access": "public",
"exports": {
"./package.json": "./package.json",
"./hooks/datadog": {
"types": "./dist/packages/core/src/hooks/datadog/index.d.ts",
"import": "./dist/packages/core/src/hooks/datadog/index.js",
"require": "./dist/packages/core/src/hooks/datadog/index.js"
},
"./*": {
"types": "./dist/packages/core/src/*.d.ts",
"import": "./dist/packages/core/src/*.js",
"require": "./dist/packages/core/src/*.js"
}
"./hooks/datadog": "./dist/packages/core/src/hooks/datadog/index.js",
"./*": "./dist/packages/core/src/*.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "yarn clean; tsc",
"build": "yarn clean && tsc",
"clean": "rm -rf dist",
"prepack": "yarn build",
"typecheck": "tsc --noEmit",
Expand Down
21 changes: 4 additions & 17 deletions packages/esbuild-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,15 @@
"access": "public",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/packages/esbuild-plugin/src/index.d.ts",
"import": "./dist/packages/esbuild-plugin/src/index.js",
"require": "./dist/packages/esbuild-plugin/src/index.js"
},
"./*": {
"types": "./dist/packages/esbuild-plugin/src/*.d.ts",
"import": "./dist/packages/esbuild-plugin/src/*.js",
"require": "./dist/packages/esbuild-plugin/src/*.js"
}
".": "./dist/packages/esbuild-plugin/src/index.js",
"./*": "./dist/packages/esbuild-plugin/src/*.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "yarn clean; tsc",
"build": "yarn clean && tsc",
"clean": "rm -rf dist",
"prepack": "yarn build",
"typecheck": "tsc --noEmit",
Expand All @@ -42,11 +34,6 @@
"esbuild": "0.20.2"
},
"peerDependencies": {
"esbuild": "*"
},
"peerDependenciesMeta": {
"esbuild": {
"optional": true
}
"esbuild": "0.x"
}
}
19 changes: 3 additions & 16 deletions packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,8 @@
"access": "public",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/packages/webpack-plugin/src/index.d.ts",
"import": "./dist/packages/webpack-plugin/src/index.js",
"require": "./dist/packages/webpack-plugin/src/index.js"
},
"./*": {
"types": "./dist/packages/webpack-plugin/src/*.d.ts",
"import": "./dist/packages/webpack-plugin/src/*.js",
"require": "./dist/packages/webpack-plugin/src/*.js"
}
".": "./dist/packages/webpack-plugin/src/index.js",
"./*": "./dist/packages/webpack-plugin/src/*.js"
}
},
"files": [
Expand All @@ -43,11 +35,6 @@
"webpack": "5.49.0"
},
"peerDependencies": {
"webpack": "*"
},
"peerDependenciesMeta": {
"webpack": {
"optional": true
}
"webpack": ">= 4.x < 6.x"
}
}
10 changes: 2 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,7 @@ __metadata:
esbuild: "npm:0.20.2"
typescript: "npm:5.4.3"
peerDependencies:
esbuild: "*"
peerDependenciesMeta:
esbuild:
optional: true
esbuild: 0.x
languageName: unknown
linkType: soft

Expand All @@ -587,10 +584,7 @@ __metadata:
typescript: "npm:5.4.3"
webpack: "npm:5.49.0"
peerDependencies:
webpack: "*"
peerDependenciesMeta:
webpack:
optional: true
webpack: ">= 4.x < 6.x"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 4a5e529

Please sign in to comment.