8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735e1bd commit 846cba0Copy full SHA for 846cba0
scripts/create-packages.js
@@ -26,6 +26,11 @@ await Promise.all(
26
let name = `@todoctor/${platform}-${arch}`
27
let displayName = platform.toUpperCase() + platform.slice(1)
28
let displayArch = arch.toUpperCase()
29
+ let packageBinaryFile = 'todoctor'
30
+
31
+ if (platform === 'win32') {
32
+ packageBinaryFile += '.exe'
33
+ }
34
35
fs.writeFile(
36
path.join(packageDirectory, 'package.json'),
@@ -39,6 +44,11 @@ await Promise.all(
39
44
repository: rootPackageJson.repository,
40
45
license: rootPackageJson.license,
41
46
author: rootPackageJson.author,
47
+ exports: {
48
+ '.': {
49
+ default: `./${packageBinaryFile}`,
50
+ },
51
42
52
os: [platform.name],
43
53
cpu: [arch],
54
},
0 commit comments