@gaonjs/core 0.1.0 → 0.1.2
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/dist/index.d.ts +1 -7
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @gaonjs/core — Gaon 프레임웍의 로드맵·메타데이터 단일 원천.
|
|
3
|
-
*
|
|
4
|
-
* v1 커널(설정·생명주기·플러그인·doctor) 구현은 로드맵 M2 이후.
|
|
5
|
-
* M1(현재)에서는 스텁 CLI가 소비하는 로드맵 데이터만 제공한다.
|
|
6
|
-
*/
|
|
7
|
-
export declare const VERSION = "0.1.0";
|
|
1
|
+
export declare const VERSION: string;
|
|
8
2
|
export declare const HOMEPAGE = "https://gaonjs.dev";
|
|
9
3
|
export type MilestoneStatus = "in-progress" | "planned";
|
|
10
4
|
export interface Milestone {
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
* v1 커널(설정·생명주기·플러그인·doctor) 구현은 로드맵 M2 이후.
|
|
5
5
|
* M1(현재)에서는 스텁 CLI가 소비하는 로드맵 데이터만 제공한다.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import { readFileSync } from "node:fs";
|
|
8
|
+
// 자기 package.json 을 런타임에 읽어 버전을 노출한다 — 하드코딩 상수
|
|
9
|
+
// 정정(errata 후속). 배포 시 package.json 은 항상 포함되고, dist/ 기준
|
|
10
|
+
// 상위(패키지 루트)에 있으므로 `../package.json` 으로 참조한다.
|
|
11
|
+
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
12
|
+
export const VERSION = pkg.version;
|
|
8
13
|
export const HOMEPAGE = "https://gaonjs.dev";
|
|
9
14
|
/** 설계 문서 §13.5 / M1 착수 지시의 6개 마일스톤. */
|
|
10
15
|
export const MILESTONES = [
|