build: fix inconsistencies with .npmignore

This commit is contained in:
Karl-Philipp Wulfert
2018-12-04 14:11:14 +01:00
parent 0017c0f3ce
commit 827d87ba03
3 changed files with 18 additions and 1 deletions

View File

@@ -3,10 +3,15 @@
/*
# Except this files/folders
!.editorconfig
!.gitignore
!.npmignore
!docs
!lib
!LICENSE
!package.json
!package-lock.json
!README.md
!scripts
!templates
!tsconfig.json
!tslint.json

View File

@@ -6,7 +6,7 @@ import {join} from 'path';
export const NEEDED_FILES = [
'.editorconfig',
'.gitignore',
'.npmignore',
join('templates', '.npmignore'),
join('templates', 'tsconfig.json'),
join('templates', 'tslint.json'),
];

12
templates/.npmignore Normal file
View File

@@ -0,0 +1,12 @@
# Ignore all files/folders by default
# See https://stackoverflow.com/a/29932318
/*
# Except this files/folders
!docs
!lib
!LICENSE
!package.json
!package-lock.json
!README.md
!tsconfig.json
!tslint.json