Comparing version 0.10.0 to 0.11.0
@@ -5,3 +5,7 @@ #!/usr/bin/env node | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -142,3 +146,3 @@ if (k2 === undefined) k2 = k; | ||
} | ||
const { pattern, verbose, "tab-width": tabWidth } = (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv)) | ||
const { pattern, verbose, "tab-width": tabWidth, } = (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv)) | ||
.command("$0 [pattern]", "Internal .d.ts cleanup", (y) => y.positional("pattern", { default: "./dist/**/*.d.ts", description: "files to process (glob pattern)" })) | ||
@@ -156,3 +160,4 @@ .option("verbose", { | ||
description: "Use a different tab-width when formatting new code", | ||
}).parseSync(); | ||
}) | ||
.parseSync(); | ||
const files = glob_1.default.sync(pattern); | ||
@@ -159,0 +164,0 @@ for (const file of files) { |
{ | ||
"name": "idtsc", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "Internal .d.ts cleanup. Turns class properties marked with @internal to private.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"lint": "npm run lint:style && npm run lint:es && npm run lint:package", | ||
"lint:es": "eslint src/**/*.ts --ext .ts,.tsx --ignore-path .prettierignore", | ||
"lint:es": "eslint \"src/**/*.ts\" --ext \".ts\" --ignore-path .prettierignore", | ||
"lint:es:fix": "npm run lint:es -- --fix", | ||
@@ -40,24 +40,23 @@ "lint:fix": "npm run lint:style:fix && npm run lint:es:fix && npm run lint:package:fix", | ||
"lint:style": "npm run lint:style:base -- --check", | ||
"lint:style:base": "prettier src/**/*.ts ./*.{js,json}", | ||
"lint:style:base": "prettier \"src/**/*.ts\" \"./*.{js,json}\"", | ||
"lint:style:fix": "npm run lint:style:base -- --write", | ||
"test": "rimraf examples && copyfiles -f ./src/examples/*.* ./examples/ && ts-node --files src/index.ts './examples/**/*.d.ts'" | ||
"test": "rimraf examples && copyfiles -f \"./src/examples/*.*\" \"./examples/\" && ts-node --files \"src/index.ts\" \"./examples/**/*.d.ts\"" | ||
}, | ||
"dependencies": { | ||
"@babel/parser": "^7.15.6", | ||
"glob": "^7.1.7", | ||
"recast": "^0.20.5", | ||
"typescript": "^4.4.3", | ||
"yargs": "^17.1.1" | ||
"@babel/parser": "^7.18.3", | ||
"glob": "^8.0.3", | ||
"recast": "^0.21.1", | ||
"typescript": "^4.7.2", | ||
"yargs": "^17.5.1" | ||
}, | ||
"devDependencies": { | ||
"@lusito/eslint-config": "^1.7.0", | ||
"@lusito/prettier-config": "^1.7.0", | ||
"@lusito/stylelint-config": "^1.6.0", | ||
"@types/node": "^16.9.1", | ||
"@types/yargs": "^17.0.2", | ||
"@lusito/eslint-config": "^2.0.3", | ||
"@lusito/prettier-config": "^2.0.0", | ||
"@types/node": "^17.0.36", | ||
"@types/yargs": "^17.0.10", | ||
"copyfiles": "^2.4.1", | ||
"rimraf": "^3.0.2", | ||
"sort-package-json": "^1.51.0", | ||
"ts-node": "^10.2.1" | ||
"sort-package-json": "^1.57.0", | ||
"ts-node": "^10.8.0" | ||
} | ||
} |
@@ -118,3 +118,7 @@ #!/usr/bin/env node | ||
const { pattern, verbose, "tab-width": tabWidth } = yargs(hideBin(process.argv)) | ||
const { | ||
pattern, | ||
verbose, | ||
"tab-width": tabWidth, | ||
} = yargs(hideBin(process.argv)) | ||
.command("$0 [pattern]", "Internal .d.ts cleanup", (y) => | ||
@@ -134,3 +138,4 @@ y.positional("pattern", { default: "./dist/**/*.d.ts", description: "files to process (glob pattern)" }) | ||
description: "Use a different tab-width when formatting new code", | ||
}).parseSync(); | ||
}) | ||
.parseSync(); | ||
@@ -137,0 +142,0 @@ const files = glob.sync(pattern); |
Sorry, the diff of this file is not supported yet
23118
8
299
+ Addedast-types@0.15.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedminimatch@5.1.6(transitive)
+ Addedrecast@0.21.5(transitive)
- Removedast-types@0.14.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrecast@0.20.5(transitive)
Updated@babel/parser@^7.18.3
Updatedglob@^8.0.3
Updatedrecast@^0.21.1
Updatedtypescript@^4.7.2
Updatedyargs@^17.5.1