gatsby-attainlabs-cms 1.0.9 → 1.0.11
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/gatsby-node.js +6 -6
- package/package.json +1 -2
- package/tsconfig.json +1 -3
package/gatsby-node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "dotenv/config";
|
|
5
|
-
// Load PAT from env instead of hardcoding (fallback to old const for now but warn)
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const https = require("https");
|
|
3
|
+
const path = require("path");
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
require("dotenv").config();
|
|
6
|
+
// Load PAT from env instead of hardcoding (fallback to old const for now but warn)
|
|
7
|
+
exports.onPreInit = async (_, pluginOptions) => {
|
|
8
8
|
const { brand, azureBranch, personalAccessToken: patOption } = pluginOptions;
|
|
9
9
|
|
|
10
10
|
// Try env first, then plugin option fallback
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-attainlabs-cms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"scripts": {
|
|
9
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
9
|
"build": "tsc"
|