vscode: shrink derivation size
Prune out compile-time dependencies.
This commit is contained in:
parent
a703bd49a9
commit
0c195db5dd
|
@ -42,8 +42,8 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
# INSTALL COMPILE- & RUN-TIME DEPENDENCIES
|
# BUILD COMPILE- & RUN-TIME DEPENDENCIES
|
||||||
echo "INSTALL COMPILE- & RUN-TIME DEPENDENCIES"
|
echo "BUILD COMPILE- & RUN-TIME DEPENDENCIES"
|
||||||
mkdir -p ./tmp
|
mkdir -p ./tmp
|
||||||
HOME=./tmp ./scripts/npm.sh install
|
HOME=./tmp ./scripts/npm.sh install
|
||||||
|
|
||||||
|
@ -60,6 +60,10 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
# PRUNE COMPILE-TIME DEPENDENCIES
|
||||||
|
echo "PRUNE COMPILE-TIME DEPENDENCIES"
|
||||||
|
npm prune --production
|
||||||
|
|
||||||
# COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY
|
# COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY
|
||||||
echo "COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY"
|
echo "COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY"
|
||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
|
|
Loading…
Reference in New Issue