gatsby-attainlabs-cms 1.0.4 → 1.0.5

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
@@ -18,10 +18,10 @@ npm install gatsby-attainlabs-cms
18
18
 
19
19
  ### 1. Add environment variable
20
20
 
21
- At the root of your Gatsby site, create a `.env.development` and/or `.env.production` file if it doesn’t already exist:
21
+ At the root of your Gatsby site, create a `.env` file if it doesn’t already exist:
22
22
 
23
23
  ```bash
24
- touch .env.development
24
+ touch .env
25
25
  ```
26
26
 
27
27
  Inside the file, add your Azure DevOps Personal Access Token (PAT):
package/gatsby-node.js CHANGED
@@ -97,10 +97,10 @@ export const onPreInit = async (_, pluginOptions) => {
97
97
  // Keep only index.tsx files
98
98
  const items = (result.value || []).filter(
99
99
  (i) =>
100
- (!i.isFolder &&
101
- i.gitObjectType === "blob" &&
102
- posix.basename(i.path) === "index.tsx") ||
103
- posix.extname(i.path) === "ts"
100
+ !i.isFolder &&
101
+ i.gitObjectType === "blob" &&
102
+ (posix.basename(i.path) === "index.tsx" ||
103
+ posix.extname(i.path) === ".ts")
104
104
  );
105
105
 
106
106
  console.log(`Found ${items.length} files in ${repoPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-attainlabs-cms",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "gatsby-node.js",
5
5
  "type": "module",
6
6
  "scripts": {