Comparing version 0.3.3 to 0.4.0
14
index.js
@@ -5,2 +5,3 @@ import { addChangeset } from "./changeset.js"; | ||
import { publish } from "./publish.js"; | ||
import { listPackages } from "./list.js"; | ||
validateConfig(); | ||
@@ -18,3 +19,4 @@ const isDebugEnabled = config("debug") ?? false; | ||
kill(); | ||
if (args[0] === "add") { | ||
const baseArg = args[0]; | ||
if (baseArg === "add") { | ||
if (isDebugEnabled) { | ||
@@ -25,3 +27,3 @@ console.log("running add"); | ||
} | ||
if (args[0] === "prepare") { | ||
if (baseArg === "prepare") { | ||
if (isDebugEnabled) { | ||
@@ -32,3 +34,3 @@ console.log("running prepare"); | ||
} | ||
if (args[0] === "publish") { | ||
if (baseArg === "publish") { | ||
if (isDebugEnabled) { | ||
@@ -39,2 +41,8 @@ console.log("running publish"); | ||
} | ||
if (baseArg === "list") { | ||
if (isDebugEnabled) { | ||
console.log("running list"); | ||
} | ||
await listPackages(); | ||
} | ||
kill(); |
{ | ||
"name": "auri", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "Organize package changes and releases", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,3 +39,7 @@ import fs from "fs"; | ||
// ignore only accepts relative paths :( | ||
ig.add(ignoreItemAbsolutePaths.map((val) => `.${val.replace("/", "")}`)); | ||
ig.add(ignoreItemAbsolutePaths.map((val) => { | ||
if (val.includes("!")) | ||
return `!.${val.replace("/", "").replace("!", "")}`; | ||
return `.${val.replace("/", "")}`; | ||
})); | ||
const absoluteFilePaths = []; | ||
@@ -42,0 +46,0 @@ const dirItemNames = fs.readdirSync(workingAbsolutePath); |
@@ -56,3 +56,3 @@ # Auri | ||
```json | ||
````json | ||
{ | ||
@@ -63,3 +63,3 @@ "scripts": { | ||
} | ||
``` | ||
```s | ||
@@ -76,3 +76,3 @@ #### `publish_setup` | ||
} | ||
``` | ||
```` | ||
@@ -104,2 +104,6 @@ ## Commands | ||
Compares version of package.json and one in the NPM registry, and runs `auri.publish` if it differs | ||
Compares version of package.json and one in the NPM registry, and runs `auri.publish` if it differs. | ||
### `auri list` | ||
Lists all packages handled by Auri. |
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
30241
28
696
106