Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #189 from jakebailey/npmignore
Browse files Browse the repository at this point in the history
Generate .npmignore, set version X.Y.9999
  • Loading branch information
sandersn committed Nov 14, 2023
2 parents 1ea0aef + 4016cca commit 5f1f583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/definitely-typed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async function run(indexDtsContent: string, packageName: string, dtName: string,
["tsconfig.json", `${JSON.stringify(getTSConfig(dtName), undefined, 4)}\n`],
["package.json", `${JSON.stringify(await getPackageJson(dtName, packageName), undefined, 4)}\n`],
["tslint.json", '{ "extends": "@definitelytyped/dtslint/dt.json" }\n'],
[".npmignore", ["*", "!**/*.d.ts", "!**/*.d.cts", "!**/*.d.mts", "!**/*.d.*.ts"].join('\n') + '\n'],
];

for (const [name, text] of files) {
Expand Down Expand Up @@ -108,7 +109,7 @@ async function getPackageJson(dtName: string, packageName: string): Promise<{}>
return {
private: true,
name: `@types/${dtName}`,
version: `${version}.0.99999`,
version: `${version}.0.9999`,
projects: [project],
devDependencies: {
[`@types/${dtName}`]: "workspace:."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dts-gen",
"version": "0.7.2",
"version": "0.7.3",
"description": "TypeScript Definition File Generator",
"main": "bin/lib/index.js",
"bin": {
Expand Down

0 comments on commit 5f1f583

Please sign in to comment.