multiformats
Advanced tools
Comparing version 1.1.12 to 1.1.13
{ | ||
"name": "multiformats", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "Interface for multihash, multicodec, multibase and CID.", | ||
@@ -99,2 +99,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"base-x": "^3.0.8", | ||
@@ -101,0 +102,0 @@ "buffer": "^5.6.0", |
@@ -1,16 +0,25 @@ | ||
import { readdirSync } from 'fs' | ||
import { join } from 'path' | ||
import { readdirSync, readFileSync } from 'fs' | ||
import { fileURLToPath } from 'url' | ||
import { dirname, join } from 'path' | ||
import alias from '@rollup/plugin-alias' | ||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = dirname(__filename) | ||
const pkg = JSON.parse(readFileSync(join(__dirname, 'package.json'))) | ||
const dir = 'dist' | ||
const preserveModules = true | ||
const configs = [] | ||
for (const subdir of ['test', 'bases', 'hashes', 'codecs', '.']) { | ||
const output = { dir: join(dir, subdir), preserveModules, format: 'cjs', entryFileNames: '[name].cjs' } | ||
const testdir = join(__dirname, subdir) | ||
const filter = name => name.endsWith('.js') | ||
const createConfig = f => ({ input: join(subdir, f), output }) | ||
readdirSync(testdir).filter(filter).map(createConfig).forEach(c => configs.push(c)) | ||
} | ||
const plugins = [ | ||
alias({ entries: [{ find: pkg.name, replacement: __dirname }] }) | ||
] | ||
const output = { dir, preserveModules, format: 'cjs', entryFileNames: '[name].cjs' } | ||
const testdir = join(__dirname, 'test') | ||
const filter = name => name.endsWith('.js') | ||
const createConfig = f => ({ input: join('test', f), output, plugins }) | ||
const configs = readdirSync(testdir).filter(filter).map(createConfig) | ||
console.log(configs) | ||
export default configs |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
870681
6
42
2205
+ Added@rollup/plugin-alias@^3.1.1
+ Added@rollup/plugin-alias@3.1.9(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedrollup@2.79.1(transitive)
+ Addedslash@3.0.0(transitive)