@gracile/engine
Advanced tools
Comparing version 0.2.0-next.3 to 0.2.0-next.4
@@ -1,4 +0,2 @@ | ||
import { readFile } from 'node:fs/promises'; | ||
import { join } from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import { logger } from '@gracile/internal-utils/logger'; | ||
@@ -34,6 +32,18 @@ import { rename, rm } from 'fs/promises'; | ||
// Infos | ||
const mainPjson = fileURLToPath(new URL('../../gracile/package.json', import.meta.url)); | ||
const { version } = JSON.parse(await readFile(mainPjson, 'utf-8')); | ||
// // NOTE: Beware import.meta.resolve is only compatible | ||
// // with v20.6.0 (without cli flag)and upward | ||
// // Not working with StackBlitz ATM? | ||
// const mainPjson = import.meta | ||
// .resolve('@gracile/gracile') | ||
// // NOTE: Weirdly, it will assume that it's `dist/**.js`, | ||
// // even after fiddling with pjson exports. | ||
// .replace('/dist/index.js', '/package.json'); | ||
// const { version } = JSON.parse( | ||
// await readFile(new URL(mainPjson), 'utf-8'), | ||
// ) as { | ||
// version: number; | ||
// }; | ||
const version = process.env['__GRACILE_VERSION__']; | ||
logger.info(`${c.cyan(c.italic(c.underline('🧚 Gracile ')))}` + | ||
` ${c.green(` v${version}`)}`); | ||
` ${c.green(` v${version ?? 'X'}`)}`); | ||
// --- | ||
@@ -40,0 +50,0 @@ const { handler } = await createDevHandler({ |
{ | ||
"name": "@gracile/engine", | ||
"version": "0.2.0-next.3", | ||
"version": "0.2.0-next.4", | ||
"description": "A thin, full-stack, web framework", | ||
@@ -78,3 +78,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "48a2950f61cfb2d0aec50f5539ea90f7905ad6a8" | ||
"gitHead": "79b1951fb7faf857deb5f361169fea20b7e4ef62" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
136023
1775
2