Skip to content

Commit 68e37a8

Browse files
authored
fix: md files (#380)
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
1 parent 546feab commit 68e37a8

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/inshellisense",
3-
"version": "0.0.1-rc.23",
3+
"version": "0.0.1-rc.24",
44
"description": "IDE style command line auto complete",
55
"type": "module",
66
"engines": {

scripts/pkg-base.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ const getVersion = (): string => {
1313
return packageJson.version;
1414
};
1515

16+
const copyFiles = (): void => {
17+
const mdFiles = fs.readdirSync(process.cwd()).filter((file) => file.endsWith(".md"));
18+
for (const file of mdFiles) {
19+
fs.copyFileSync(file, path.join(PKG_DIR, file));
20+
}
21+
fs.copyFileSync("LICENSE", path.join(PKG_DIR, "LICENSE"));
22+
};
23+
1624
const generatePackageJson = (): void => {
1725
const packageJson = {
1826
name: `@microsoft/inshellisense`,
@@ -29,7 +37,10 @@ const generatePackageJson = (): void => {
2937
bugs: {
3038
url: "https://github.com/microsoft/inshellisense/issues",
3139
},
32-
files: [],
40+
files: [
41+
"*.md",
42+
"LICENSE",
43+
],
3344
optionalDependencies: {
3445
"@microsoft/inshellisense-darwin-x64": getVersion(),
3546
"@microsoft/inshellisense-darwin-arm64": getVersion(),
@@ -47,6 +58,7 @@ const packageBase = (): void => {
4758
};
4859

4960
const main = async (): Promise<void> => {
61+
copyFiles();
5062
generatePackageJson();
5163
packageBase();
5264
};

0 commit comments

Comments
 (0)