niral 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -44,7 +44,7 @@ function hasGit() {
|
|
|
44
44
|
/** Download the framework to ~/.niral/framework (git if available, tarball otherwise). */
|
|
45
45
|
export async function ensureFramework({ update = false } = {}) {
|
|
46
46
|
if (existsSync(join(FRAMEWORK, "bin", "niral.js")) && !update) return FRAMEWORK;
|
|
47
|
-
console.log("
|
|
47
|
+
console.log("niral · downloading the framework (one time, ~1 MB — it has zero dependencies)…");
|
|
48
48
|
mkdirSync(NIRAL_HOME, { recursive: true });
|
|
49
49
|
if (hasGit()) {
|
|
50
50
|
if (existsSync(join(FRAMEWORK, ".git"))) {
|
|
@@ -81,7 +81,7 @@ export function installLauncher() {
|
|
|
81
81
|
const line = `export PATH="$HOME/.niral/bin:$PATH"`;
|
|
82
82
|
const current = existsSync(profile) ? readFileSync(profile, "utf8") : "";
|
|
83
83
|
if (!current.includes(".niral/bin")) {
|
|
84
|
-
appendFileSync(profile, `\n# niral
|
|
84
|
+
appendFileSync(profile, `\n# niral\n${line}\n`);
|
|
85
85
|
return { shim, profile, added: true };
|
|
86
86
|
}
|
|
87
87
|
return { shim, profile, added: false };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "niral",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Niral — the zero-dependency full-stack framework by ZyoraLabs. This package is a tiny launcher; the framework itself lives at github.com/Zyora-Dev/niral and has zero dependencies.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"niral": "bin/niral.js",
|
|
7
7
|
"create-niral": "bin/create-niral.js"
|