Skip to content

Commit a2edc36

Browse files
committed
fix: dont add dist on release
1 parent 9ec86de commit a2edc36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"test:build:version": "node ./bin/check-build-version.js",
5252
"start": "node ./sandbox/server.js",
5353
"preversion": "gulp version",
54-
"version": "npm run build && git add dist && git add package.json",
54+
"version": "npm run build && git add package.json",
5555
"prepublishOnly": "npm run test:build:version",
5656
"postpublish": "git push && git push --tags",
5757
"build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
@@ -212,7 +212,7 @@
212212
"hooks": {
213213
"before:init": "npm test",
214214
"after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version",
215-
"before:release": "npm run release:changelog:fix",
215+
"before:release": "npm run release:changelog:fix && git add ./dist && git add ./package-lock.json",
216216
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
217217
}
218218
},
@@ -228,4 +228,4 @@
228228
"@commitlint/config-conventional"
229229
]
230230
}
231-
}
231+
}

0 commit comments

Comments
 (0)