@tinacms/app 1.0.5 → 1.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/appFiles/node_modules/.package-lock.json +3 -3
- package/appFiles/node_modules/@babel/parser/lib/index.js +42 -34
- package/appFiles/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/appFiles/node_modules/@babel/parser/package.json +1 -1
- package/dist/index.js +7 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -375,13 +375,19 @@ var viteBuild = async ({
|
|
|
375
375
|
const alias = {
|
|
376
376
|
TINA_IMPORT: configPrebuildPath
|
|
377
377
|
};
|
|
378
|
+
const publicEnv = {};
|
|
379
|
+
Object.keys(process.env).forEach((key) => {
|
|
380
|
+
if (key.startsWith("TINA_PUBLIC_") || key.startsWith("NEXT_PUBLIC_") || key === "NODE_ENV" || key === "HEAD") {
|
|
381
|
+
publicEnv[key] = JSON.stringify(process.env[key]);
|
|
382
|
+
}
|
|
383
|
+
});
|
|
378
384
|
const config = {
|
|
379
385
|
root: appRootPath,
|
|
380
386
|
base: `/${outputFolder}/`,
|
|
381
387
|
mode: local ? "development" : "production",
|
|
382
388
|
plugins: [(0, import_vite.splitVendorChunkPlugin)(), (0, import_plugin_react.default)(), viteTina()],
|
|
383
389
|
define: {
|
|
384
|
-
"process.env": `new Object(${JSON.stringify(
|
|
390
|
+
"process.env": `new Object(${JSON.stringify(publicEnv)})`,
|
|
385
391
|
__API_URL__: `"${apiUrl}"`
|
|
386
392
|
},
|
|
387
393
|
esbuild: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@types/react": "17.0.2",
|
|
38
38
|
"@types/react-dom": "17.0.2",
|
|
39
39
|
"@tinacms/scripts": "1.0.1",
|
|
40
|
-
"tinacms": "1.1.
|
|
41
|
-
"@tinacms/toolkit": "1.3.
|
|
40
|
+
"tinacms": "1.1.5",
|
|
41
|
+
"@tinacms/toolkit": "1.3.1",
|
|
42
42
|
"@tinacms/mdx": "1.1.1",
|
|
43
43
|
"jest": "^27.0.6"
|
|
44
44
|
},
|