@es-shims/api
Advanced tools
Comparing version 2.2.3 to 2.3.0
14
api.js
@@ -11,2 +11,4 @@ #!/usr/bin/env node | ||
var flatMap = require('array.prototype.flatmap'); | ||
var args = process.argv.slice(2); // remove node, and script name | ||
@@ -33,3 +35,8 @@ | ||
var isMulti = args.some(argEquals('--multi')); | ||
var extraIgnoreDirs = flatMap(args, function (x) { | ||
return x.startsWith('--ignore-dirs=') ? x.slice('--ignore-dirs='.length).split(',') : []; | ||
}); | ||
var ignoreDirs = ['node_modules', 'coverage', 'helpers', 'test', 'aos'].concat(extraIgnoreDirs); | ||
var makeEntries = function (name) { | ||
@@ -167,8 +174,3 @@ return [name, name]; | ||
var dirs = fs.readdirSync(packageDir).filter(function (d) { | ||
return !d.startsWith('.') | ||
&& d !== 'node_modules' | ||
&& d !== 'coverage' | ||
&& d !== 'helpers' | ||
&& d !== 'test' | ||
&& fs.statSync(d).isDirectory(); | ||
return !d.startsWith('.') && !ignoreDirs.includes(d) && fs.statSync(d).isDirectory(); | ||
}); | ||
@@ -175,0 +177,0 @@ t.deepEqual(subPackages, dirs, 'main export subpackages matches dirs in the package root'); |
@@ -0,1 +1,10 @@ | ||
2.3.0 / 2023-02-04 | ||
================== | ||
* [New] add `--ignore-dirs` option to be used with `--multi` | ||
* [Deps] update `tape` | ||
* [meta] use `npmignore` to autogenerate an npmignore file | ||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `safe-publish-latest | ||
* [actions] update rebase action to use reusable workflow | ||
* [actions] reuse common workflows | ||
2.2.3 / 2021-10-04 | ||
@@ -2,0 +11,0 @@ ================== |
{ | ||
"name": "@es-shims/api", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"author": "Jordan Harband", | ||
@@ -14,3 +14,5 @@ "funding": { | ||
"scripts": { | ||
"prepublish": "safe-publish-latest", | ||
"prepack": "npmignore --auto --commentLines=autogenerated", | ||
"prepublishOnly": "safe-publish-latest", | ||
"prepublish": "not-in-publish || npm run prepublishOnly", | ||
"pretest": "npm run --silent lint", | ||
@@ -40,11 +42,14 @@ "test": "npm run --silent tests-only", | ||
"dependencies": { | ||
"tape": "^5.3.1" | ||
"array.prototype.flatmap": "^1.3.1", | ||
"tape": "^5.6.3" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^18.0.0", | ||
"aud": "^1.1.5", | ||
"eslint": "^7.32.0", | ||
"@ljharb/eslint-config": "^21.0.1", | ||
"aud": "^2.0.2", | ||
"eslint": "=8.8.0", | ||
"in-publish": "^2.0.1", | ||
"make-arrow-function": "^1.2.0", | ||
"make-generator-function": "^2.0.0", | ||
"safe-publish-latest": "^1.1.4" | ||
"npmignore": "^0.3.0", | ||
"safe-publish-latest": "^2.0.0" | ||
}, | ||
@@ -73,4 +78,6 @@ "testling": { | ||
"publishConfig": { | ||
"access": "public" | ||
"ignore": [ | ||
".github/workflows" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
33825
2
8
10
+ Addedarray.prototype.flatmap@1.3.2(transitive)
+ Addedes-shim-unscopables@1.0.2(transitive)
Updatedtape@^5.6.3