You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Wouldnt it be better to run npm install instead of npm run-script postinstall because then postinstall would be called after npm install has finished and packages are automaticlly installed
The reason will be displayed to describe this comment to others. Learn more.
postinstall cant possibly run before all modules are installed since postinstall starts a script that uses the discord.js package: import { REST, Routes } from 'discord.js';
the naming for the postinstall command is not really intuitive tbh.
The reason will be displayed to describe this comment to others. Learn more.
I named the script postinstall because npm runs scipts called post<action> after <action> is finished and the script setupCommands gets run after all packages are installed
53eebfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldnt it be better to run
npm install
instead ofnpm run-script postinstall
because then postinstall would be called afternpm install
has finished and packages are automaticlly installed53eebfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postinstall cant possibly run before all modules are installed since postinstall starts a script that uses the discord.js package:
import { REST, Routes } from 'discord.js';
the naming for the postinstall command is not really intuitive tbh.
53eebfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose a npm script namechange from
postinstall
->setupCommands
53eebfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I named the script
postinstall
because npm runs scipts calledpost<action>
after<action>
is finished and the scriptsetupCommands
gets run after all packages are installed53eebfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postinstall
doesn't run in environments where the executing user is root. this is the case for docker.53eebfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok do what you must