@canva/cli 0.0.1-beta.6 → 0.0.1-beta.8

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.
@@ -3,7 +3,7 @@
3
3
  "name": "empty-template",
4
4
  "description": "An empty Canva App",
5
5
  "scripts": {
6
- "extract": "formatjs extract src/**/*.{ts,tsx} --out-file dist/messages_en.json",
6
+ "extract": "formatjs extract \"src/**/*.{ts,tsx}\" --out-file dist/messages_en.json",
7
7
  "build": "webpack --config webpack.config.cjs --mode production && npm run extract",
8
8
  "format": "prettier '**/*.{css,ts,tsx}' --no-config --write",
9
9
  "format:check": "prettier '**/*.{css,ts,tsx}' --no-config --check --ignore-path",
@@ -17,32 +17,35 @@
17
17
  "postinstall": "ts-node ./scripts/copy-env.ts"
18
18
  },
19
19
  "dependencies": {
20
- "@canva/app-ui-kit": "^4.2.0",
21
- "@canva/app-i18n-kit": "^1.0.0",
22
- "@canva/design": "^2.1.0",
23
- "@canva/platform": "^2.0.0",
20
+ "@canva/app-i18n-kit": "^1.0.1",
21
+ "@canva/app-ui-kit": "^4.3.0",
22
+ "@canva/design": "^2.2.1",
24
23
  "@canva/error": "^2.0.0",
24
+ "@canva/platform": "^2.0.0",
25
25
  "react": "18.3.1",
26
26
  "react-dom": "18.3.1",
27
- "react-intl": "6.6.8"
27
+ "react-intl": "6.8.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@eslint/eslintrc": "3.1.0",
31
- "@eslint/js": "9.12.0",
32
- "@formatjs/cli": "6.2.12",
33
- "@formatjs/ts-transformer": "3.13.14",
31
+ "@eslint/js": "9.14.0",
32
+ "@formatjs/cli": "6.3.8",
33
+ "@formatjs/ts-transformer": "3.13.22",
34
34
  "@ngrok/ngrok": "1.4.1",
35
35
  "@svgr/webpack": "8.1.0",
36
- "@types/jest": "29.5.13",
36
+ "@types/express": "4.17.21",
37
+ "@types/express-serve-static-core": "4.19.6",
38
+ "@types/jest": "29.5.14",
39
+ "@types/jsonwebtoken": "9.0.7",
37
40
  "@types/node": "20.10.0",
38
41
  "@types/node-fetch": "2.6.11",
39
42
  "@types/node-forge": "1.3.11",
40
43
  "@types/nodemon": "1.19.6",
41
- "@types/react": "18.3.11",
44
+ "@types/react": "18.3.12",
42
45
  "@types/react-dom": "18.3.1",
43
46
  "@types/webpack-env": "1.18.5",
44
- "@typescript-eslint/eslint-plugin": "8.9.0",
45
- "@typescript-eslint/parser": "8.9.0",
47
+ "@typescript-eslint/eslint-plugin": "8.13.0",
48
+ "@typescript-eslint/parser": "8.13.0",
46
49
  "chalk": "4.1.2",
47
50
  "cli-table3": "0.6.5",
48
51
  "css-loader": "7.1.2",
@@ -50,12 +53,16 @@
50
53
  "cssnano": "7.0.6",
51
54
  "debug": "4.3.7",
52
55
  "dotenv": "16.4.5",
53
- "eslint": "9.12.0",
54
- "eslint-plugin-formatjs": "5.0.0",
55
- "eslint-plugin-jest": "28.8.3",
56
- "eslint-plugin-react": "7.37.1",
56
+ "eslint": "9.14.0",
57
+ "eslint-plugin-formatjs": "5.2.2",
58
+ "eslint-plugin-jest": "28.9.0",
59
+ "eslint-plugin-react": "7.37.2",
60
+ "express": "4.21.1",
61
+ "express-basic-auth": "1.2.1",
57
62
  "jest": "29.7.0",
58
- "mini-css-extract-plugin": "2.9.1",
63
+ "jsonwebtoken": "9.0.2",
64
+ "jwks-rsa": "3.1.0",
65
+ "mini-css-extract-plugin": "2.9.2",
59
66
  "node-fetch": "3.3.2",
60
67
  "node-forge": "1.3.1",
61
68
  "nodemon": "3.0.1",
@@ -68,7 +75,7 @@
68
75
  "ts-node": "10.9.2",
69
76
  "typescript": "5.5.4",
70
77
  "url-loader": "4.1.1",
71
- "webpack": "5.95.0",
78
+ "webpack": "5.96.1",
72
79
  "webpack-cli": "5.1.4",
73
80
  "webpack-dev-server": "5.1.0",
74
81
  "yargs": "17.7.2"
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import * as fs from "fs";
3
+ import * as path from "path";
4
+
5
+ const envPath = path.resolve(__dirname, "..", ".env");
6
+ const templatePath = path.resolve(__dirname, "..", ".env.template");
7
+
8
+ if (!fs.existsSync(envPath)) {
9
+ fs.copyFileSync(templatePath, envPath);
10
+ }
File without changes