Skip to content

Commit 7afea1b

Browse files
committed
Copy files into npm-dist directory
1 parent 21fa774 commit 7afea1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/teamcity.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Extra tasks when building on TeamCity.
22
const zipFolder = require("zip-folder");
3-
const fs = require("fs");
3+
const fs = require("fs-extra");
44
const request = require("request");
55
const pkg = require('../package.json');
66

@@ -64,6 +64,11 @@ if (!fs.existsSync("npm-dist")){
6464
}
6565

6666
// TODO: copy the stuff we want in the npm package into npm-dist
67+
// src and .npmignore and package.json
68+
fs.copySync("src", "npm-dist/src");
69+
fs.copySync(".npmignore", "npm-dist/.npmignore");
70+
fs.copySync("package.json", "npm-dist/package.json");
71+
6772

6873
// Zip up the dist folder
6974
const npmPkgFilename = "RedGate.HoneycombWebToolkit.Npm." + packageVersion + ".zip";

0 commit comments

Comments
 (0)