Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autobarrel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autobarrel - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

dist/autobarrel.js

@@ -103,3 +103,3 @@ "use strict";

Promise.all(Object.entries(toBarrelMap).map(async ([key, val]) => {
const lines = ["// created by autobarrel, do not modify directly\n"];
const lines = ["// created by autobarrel, do not modify directly\n\n"];
const toAdd = Array.from(val).sort();

@@ -111,7 +111,7 @@ toAdd

if (path.basename(p) !== "index.ts") {
lines.push(`export * from './${p.replace(/\.tsx?$/, "")}'`);
lines.push(`export * from './${p.replace(/\.tsx?$/, "")}'\n`);
}
});
const writePath = path.join(key, "index.ts");
await writeFileAsync(path.join(configData.cwd, writePath), lines.join("\n"));
await writeFileAsync(path.join(configData.cwd, writePath), lines.join(""));
return writePath;

@@ -118,0 +118,0 @@ })),

{
"name": "autobarrel",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.js",

@@ -11,12 +11,11 @@ "types": "dist/index.d.ts",

"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"build": "tsc",
"postinstall": "typesync",
"prepublish": "yarn clean && yarn build && chmod +x dist/cli.js",
"watch": "tsc --watch",
"test": "node ./node_modules/.bin/jest --runInBand"
"prepublishOnly": "yarn clean && yarn build && chmod +x dist/cli.js",
"test": "node ./node_modules/.bin/jest --runInBand",
"watch": "tsc --watch"
},
"dependencies": {
"chokidar": "^3.4.0",
"glob": "^7.1.6",
"chokidar": "^3.4.0",
"minimist": "^1.2.5",

@@ -26,3 +25,2 @@ "tslib": "^2.0.0"

"devDependencies": {
"@types/debug": "^4.1.5",
"@types/fs-extra": "^9.0.0",

@@ -38,5 +36,4 @@ "@types/glob": "5.0.35",

"ts-jest": "^26.0.0",
"typescript": "^3.9.2",
"typesync": "0.6.1"
"typescript": "^3.9.2"
}
}

@@ -149,3 +149,3 @@ import chokidar from "chokidar"

Object.entries(toBarrelMap).map(async ([key, val]) => {
const lines = ["// created by autobarrel, do not modify directly\n"]
const lines = ["// created by autobarrel, do not modify directly\n\n"]
const toAdd = Array.from(val).sort()

@@ -158,3 +158,3 @@

if (path.basename(p) !== "index.ts") {
lines.push(`export * from './${p.replace(/\.tsx?$/, "")}'`)
lines.push(`export * from './${p.replace(/\.tsx?$/, "")}'\n`)
}

@@ -165,3 +165,3 @@ })

path.join(configData.cwd, writePath),
lines.join("\n")
lines.join("")
)

@@ -168,0 +168,0 @@ return writePath

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc