@sky.ui.pro/core 0.0.4 → 0.0.6
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/README.md
CHANGED
|
@@ -8,10 +8,10 @@ Requires an active Sky UI Pro subscription. Install alongside `@sky.ui/core` whe
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npx sky.ui.pro login
|
|
11
|
-
npm install "@sky.ui.pro/core"
|
|
11
|
+
npm install "@sky.ui.pro/core"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
> Quote scoped names (`"@sky.ui/…"`) — required in PowerShell. See [powershell-scoped-packages.md](
|
|
14
|
+
> Quote scoped names (`"@sky.ui/…"`) — required in PowerShell. See [powershell-scoped-packages.md](https://gitlab.com/sky_ui/sky-ui/-/blob/main/docs/powershell-scoped-packages.md).
|
|
15
15
|
|
|
16
16
|
For CI/CD, set `SKY_UI_AUTH_TOKEN` to your account's CI/CD token before `npm ci`.
|
|
17
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sky.ui.pro/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Sky UI Pro web components — installs full package via postinstall (online license).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -9,13 +9,10 @@
|
|
|
9
9
|
".": "./dist/stub/index.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
-
"scripts
|
|
13
|
-
"scripts/token.mjs",
|
|
12
|
+
"scripts",
|
|
14
13
|
"dist/stub",
|
|
15
14
|
"README.md",
|
|
16
|
-
"LICENSE.md"
|
|
17
|
-
"scripts/project-env.mjs",
|
|
18
|
-
"scripts/merge-manifest.mjs"
|
|
15
|
+
"LICENSE.md"
|
|
19
16
|
],
|
|
20
17
|
"scripts": {
|
|
21
18
|
"postinstall": "node ./scripts/postinstall.mjs"
|
|
@@ -24,7 +21,7 @@
|
|
|
24
21
|
"tar": "^7.4.3"
|
|
25
22
|
},
|
|
26
23
|
"peerDependencies": {
|
|
27
|
-
"@sky.ui/core": "^0.0.
|
|
24
|
+
"@sky.ui/core": "^0.0.6",
|
|
28
25
|
"lit": ">=3 <4"
|
|
29
26
|
},
|
|
30
27
|
"peerDependenciesMeta": {
|
|
@@ -44,7 +41,7 @@
|
|
|
44
41
|
"repository": {
|
|
45
42
|
"type": "git",
|
|
46
43
|
"url": "git+https://gitlab.com/sky_ui/sky-ui.git",
|
|
47
|
-
"directory": "packages/pro
|
|
44
|
+
"directory": "packages/pro/npm/stubs/core"
|
|
48
45
|
},
|
|
49
46
|
"bugs": {
|
|
50
47
|
"url": "https://gitlab.com/sky_ui/sky-ui/-/issues"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* Unified Sky UI Pro / CLI project `.env` loading.
|
|
4
|
-
* Source of truth — synced to @sky.ui/cli and @sky.ui.pro/*
|
|
4
|
+
* Source of truth — synced to @sky.ui/cli and copied into @sky.ui.pro/* stubs on sync:pro-npm.
|
|
5
5
|
*
|
|
6
6
|
* Loads only `SKY_UI_*` keys. Shell env always wins (existing process.env is never overwritten).
|
|
7
7
|
* Search order: INIT_CWD → npm local prefix → SKY_UI_PROJECT_ROOT → cwd → project roots.
|
|
@@ -80,7 +80,7 @@ export async function validateAccessTokenOnline(token, apiBase) {
|
|
|
80
80
|
});
|
|
81
81
|
const data = await res.json().catch(() => ({}));
|
|
82
82
|
if (res.ok && data.active) {
|
|
83
|
-
return { active: true, status: "active",
|
|
83
|
+
return { active: true, status: "active", tokenKind: data.tokenKind };
|
|
84
84
|
}
|
|
85
85
|
return {
|
|
86
86
|
active: false,
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
ARTIFACT_MANIFEST_SIDECAR,
|
|
15
15
|
hasHydratedExports,
|
|
16
16
|
mergeHydratedManifest,
|
|
17
|
-
} from "./merge-manifest.mjs";
|
|
17
|
+
} from "./lib/merge-manifest.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ENTITLEMENT_MARKER,
|
|
20
20
|
cacheRoot,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateAccessTokenOnline,
|
|
28
28
|
writeEntitlementMarker,
|
|
29
29
|
formatRenewalEmailHint,
|
|
30
|
-
} from "./token.mjs";
|
|
30
|
+
} from "./lib/token.mjs";
|
|
31
31
|
|
|
32
32
|
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
|
33
33
|
const pkgRoot = join(scriptDir, "..");
|
|
File without changes
|