File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 2929# remove `BUILD_DIR` from `main`, `module` and `type` entry point paths
3030entryPointsCommand=" /\" (main|module|types)\" : .*,/s/$BUILD_DIR \///"
3131
32- # sed command to modify volta extends path
33- # remove one `../` from the extension path of volta
34- voltaExtendsCommand=" /\" extends\" : \" \.\.\/\.\.\/\.\.\/package.json\" /s/\.\.\/\.\.\/\.\.\//\.\.\/\.\.\//"
35-
3632# use empty backup file extension for sed in-place editing on MacOS and no backup for other platforms
3733if [[ $( uname) == " Darwin" ]]; then
3834 sed -i " " -E " $entryPointsCommand " $BUILD_DIR /package.json
39- sed -i " " " $voltaExtendsCommand " $BUILD_DIR /package.json
4035else
4136 sed -i -E " $entryPointsCommand #" $BUILD_DIR /package.json
42- sed -i " $voltaExtendsCommand " $BUILD_DIR /package.json
4337fi
4438
4539echo " Successfully finished postbuild commands"
You can’t perform that action at this time.
0 commit comments