Skip to content

Instantly share code, notes, and snippets.

View DanielHoffmann's full-sized avatar

Daniel Hoffmann Bernardes DanielHoffmann

  • Stockholm, Sweden
View GitHub Profile
type A = {
a: string
b: string
}
const c = {
a: 'a',
b: 'b',
c: 'c',
/* eslint-env node */
/* eslint-disable import/no-nodejs-modules */
/* eslint-disable import/no-commonjs */
/* eslint-disable import/no-dynamic-require */
const glob = require('glob')
const path = require('path')
function getPackageJsons(directory) {
const packagePaths = glob.sync('**/package.json', {
cwd: directory,