From 2ba251c8e7116f7015e8d17ffe582bc778855c75 Mon Sep 17 00:00:00 2001 From: Rahul Tarak Date: Sat, 15 Jan 2022 04:32:22 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Ignore=20dist/src=20folder=20for?= =?UTF-8?q?=20publishing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/package.json | 2 +- internal/commands/create.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/package.json b/installer/package.json index fa5082a..0f527b2 100644 --- a/installer/package.json +++ b/installer/package.json @@ -1,6 +1,6 @@ { "name": "tsdev-installer", - "version": "0.0.16", + "version": "0.0.17", "description": "The installer for tsdev, a better tsdx", "scripts": { "postinstall": "node dist/postinstall.js install", diff --git a/internal/commands/create.go b/internal/commands/create.go index b57dad4..a8555f7 100644 --- a/internal/commands/create.go +++ b/internal/commands/create.go @@ -148,7 +148,7 @@ func generatePackageJson(name string) { Main: "dist/index.js", Typings: "dist/index.d.ts", Module: "dist/index.es.js", - Files: []string{"dist"}, + Files: []string{"dist", "!dist/src"}, Scripts: map[string]string{"start": "tsdev start", "build": "tsdev build", "dev": "tsdev dev", "lint": "tsdev lint", "dts": "tsdev dts", "prepare": prepareScript}, DevDependencies: map[string]string{"typescript": "latest", "husky": "latest", "prettier": "latest", "prettier-config-standard": "latest", "@cryogenicplanet/tsdev": "latest"}, Husky: map[string]map[string]string{"hooks": {"pre-commit": "tsdev prettier", "pre-push": "tsdev lint"}},