mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
As suggested by https://github.com/npm/npm/pull/15900. This is a workaround until we get a better resolution of https://github.com/storybooks/storybook/issues/1286
9 lines
149 B
Bash
Executable File
9 lines
149 B
Bash
Executable File
#!/bin/bash -
|
|
|
|
# run in package directory
|
|
|
|
PACK_DIR=$1
|
|
FILE=$(npm pack | tail -n 1)
|
|
|
|
mv "$FILE" "$PACK_DIR/${FILE%-[0-9]*\.[0-9]*\.[0-9]*\.tgz}.tgz"
|