X Tutup
Skip to content

Commit 16b5217

Browse files
committed
fix(build): don't try to copy .d.ts files into the npm distro
Fixes #6921
1 parent 2a70f4e commit 16b5217

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

scripts/publish/npm_prepare.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ cd $ROOT_DIR
1515

1616
NPM_DIR=$ROOT_DIR/dist/npm
1717
FILES='!(test|e2e_test|docs)'
18-
DTS_FILES='*.d.ts'
1918

2019
PUBLISH_DIR=$NPM_DIR/$NAME
2120
rm -fr $PUBLISH_DIR
@@ -29,14 +28,9 @@ mkdir -p $PUBLISH_DIR/ts
2928
cp -r $ROOT_DIR/modules/$NAME/$FILES $PUBLISH_DIR/ts
3029

3130
if [ $NAME = "angular2" ]; then
32-
# Publish bundles and typings
33-
mkdir -p $PUBLISH_DIR/bundles/typings/es6-shim
34-
mkdir -p $PUBLISH_DIR/bundles/typings/jasmine
3531
# Copy Bundles
32+
mkdir -p $PUBLISH_DIR/bundles
3633
cp -r $ROOT_DIR/dist/js/bundle/$FILES $PUBLISH_DIR/bundles
37-
# Copy Typings
38-
cp -r $ROOT_DIR/modules/angular2/typings/es6-shim/$DTS_FILES $PUBLISH_DIR/bundles/typings/es6-shim
39-
cp -r $ROOT_DIR/modules/angular2/typings/jasmine/$DTS_FILES $PUBLISH_DIR/bundles/typings/jasmine
4034
fi
4135

4236
if [ $NAME = "benchpress" ]; then

0 commit comments

Comments
 (0)
X Tutup