@tinacms/scripts 1.0.1 → 1.0.3
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/LICENSE +8 -0
- package/__mocks__/styleMock.js +1 -10
- package/dist/index.js +31 -3
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Copyright (c) 2023-present Forestry.io Holdings Inc.
|
|
2
|
+
|
|
3
|
+
Portions of the TinaCMS software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
* All software that resides under the "packages/@tinacms/datalayer/" and the "packages/@tinacms/graphql/" directories (the "Tina Data Layer"), is licensed under the license defined in "packages/@tinacms/datalayer/LICENSE".
|
|
6
|
+
|
|
7
|
+
* All software outside of the above-mentioned directories is available under the "Apache 2.0" license as set forth below.
|
|
8
|
+
|
|
1
9
|
Apache License
|
|
2
10
|
Version 2.0, January 2004
|
|
3
11
|
http://www.apache.org/licenses/
|
package/__mocks__/styleMock.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software
|
|
8
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
-
See the License for the specific language governing permissions and
|
|
11
|
-
limitations under the License.
|
|
2
|
+
|
|
12
3
|
*/
|
|
13
4
|
|
|
14
5
|
// __mocks__/styleMock.js
|
package/dist/index.js
CHANGED
|
@@ -288,10 +288,21 @@ var config = (cwd = "") => {
|
|
|
288
288
|
opacity: "1",
|
|
289
289
|
transform: "translateY(0)"
|
|
290
290
|
}
|
|
291
|
+
},
|
|
292
|
+
slideInLeft: {
|
|
293
|
+
"0%": {
|
|
294
|
+
opacity: "0",
|
|
295
|
+
transform: "translateX(2rem)"
|
|
296
|
+
},
|
|
297
|
+
"100%": {
|
|
298
|
+
opacity: "1",
|
|
299
|
+
transform: "translateX(0)"
|
|
300
|
+
}
|
|
291
301
|
}
|
|
292
302
|
},
|
|
293
303
|
animation: {
|
|
294
304
|
"slide-in": "slideIn 150ms ease-out 1 normal forwards",
|
|
305
|
+
"slide-in-left": "slideInLeft 150ms ease-out 1 normal forwards",
|
|
295
306
|
"spin-reverse": "spin 1s linear infinite reverse"
|
|
296
307
|
},
|
|
297
308
|
scale: {
|
|
@@ -404,9 +415,17 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
404
415
|
outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
|
|
405
416
|
external: external.filter((item) => !packageJSON.buildConfig.entryPoints[0].bundle.includes(item))
|
|
406
417
|
});
|
|
418
|
+
await _esbuild.build.call(void 0, {
|
|
419
|
+
entryPoints: [_path2.default.join(process.cwd(), entry)],
|
|
420
|
+
bundle: true,
|
|
421
|
+
platform: "node",
|
|
422
|
+
target: "es2020",
|
|
423
|
+
format: "esm",
|
|
424
|
+
outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
|
|
425
|
+
external
|
|
426
|
+
});
|
|
407
427
|
} else if (["@tinacms/mdx"].includes(packageJSON.name)) {
|
|
408
428
|
const peerDeps2 = packageJSON.peerDependencies;
|
|
409
|
-
const external2 = Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2));
|
|
410
429
|
await _esbuild.build.call(void 0, {
|
|
411
430
|
entryPoints: [_path2.default.join(process.cwd(), entry)],
|
|
412
431
|
bundle: true,
|
|
@@ -414,7 +433,16 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
414
433
|
target: "node12",
|
|
415
434
|
format: "cjs",
|
|
416
435
|
outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
|
|
417
|
-
external:
|
|
436
|
+
external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
|
|
437
|
+
});
|
|
438
|
+
await _esbuild.build.call(void 0, {
|
|
439
|
+
entryPoints: [_path2.default.join(process.cwd(), entry)],
|
|
440
|
+
bundle: true,
|
|
441
|
+
platform: "node",
|
|
442
|
+
target: "es2020",
|
|
443
|
+
format: "esm",
|
|
444
|
+
outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
|
|
445
|
+
external
|
|
418
446
|
});
|
|
419
447
|
const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
|
|
420
448
|
await _esbuild.build.call(void 0, {
|
|
@@ -422,7 +450,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
422
450
|
bundle: true,
|
|
423
451
|
format: "esm",
|
|
424
452
|
outfile: appMDXPath,
|
|
425
|
-
external:
|
|
453
|
+
external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
|
|
426
454
|
});
|
|
427
455
|
} else {
|
|
428
456
|
await _esbuild.build.call(void 0, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"tinacms-scripts": "./bin/tina-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@babel/core": "^7.
|
|
16
|
+
"@babel/core": "^7.21.0",
|
|
17
17
|
"@babel/plugin-transform-modules-commonjs": "^7.15.0",
|
|
18
18
|
"@sucrase/jest-plugin": "^2.1.1",
|
|
19
19
|
"@tailwindcss/aspect-ratio": "^0.4.0",
|