apify-cli 0.6.5 → 0.6.6-beta.0

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.
Files changed (2) hide show
  1. package/package.json +99 -99
  2. package/src/lib/utils.js +3 -0
package/package.json CHANGED
@@ -1,102 +1,102 @@
1
1
  {
2
- "name": "apify-cli",
3
- "version": "0.6.5",
4
- "description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "mocha --timeout 180000 --recursive",
8
- "lint": "eslint src test",
9
- "lint:fix": "eslint src test --fix",
10
- "commands-md": "npm run manifest && oclif-dev readme",
11
- "prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
12
- "manifest": "rm -f oclif.manifest.json && oclif-dev manifest"
13
- },
14
- "files": [
15
- "src",
16
- "npm-shrinkwrap.json",
17
- "oclif.manifest.json",
18
- "index.js",
19
- "package.json"
20
- ],
21
- "bin": {
22
- "apify": "./src/bin/run"
23
- },
24
- "contributors": [
25
- "Jakub Drobník <jakub.drobnik@apify.com>",
26
- "Jan Curn <jan@apify.com>"
27
- ],
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/apify/apify-cli.git"
31
- },
32
- "keywords": [
33
- "apify",
34
- "client",
35
- "node",
36
- "command",
37
- "line",
38
- "bash"
39
- ],
40
- "author": {
41
- "name": "Apify",
42
- "email": "support@apify.com",
43
- "url": "https://www.apify.com"
44
- },
45
- "license": "Apache-2.0",
46
- "bugs": {
47
- "url": "https://github.com/apify/apify-cli/issues"
48
- },
49
- "homepage": "https://github.com/apify/apify-cli#readme",
50
- "engines": {
51
- "node": ">=10.0.0"
52
- },
53
- "dependencies": {
54
- "@apify/actor-templates": "^0.1.1",
55
- "@apify/http-request": "^2.1.2",
56
- "@oclif/command": "^1.8.0",
57
- "@oclif/config": "^1.17.0",
58
- "@oclif/errors": "^1.3.5",
59
- "@oclif/plugin-commands": "^1.3.0",
60
- "@oclif/plugin-help": "^3.2.3",
61
- "ajv": "^6.12.6",
62
- "apify-client": "^0.6.0",
63
- "apify-shared": "^0.6.3",
64
- "archiver-promise": "^1.0.0",
65
- "chalk": "^4.1.2",
66
- "child-process-promise": "^2.2.1",
67
- "extract-zip": "^2.0.1",
68
- "globby": "^11.0.4",
69
- "inquirer": "^7.3.3",
70
- "is-online": "^9.0.1",
71
- "load-json-file": "^6.2.0",
72
- "mime": "^2.6.0",
73
- "minimist": "^1.2.5",
74
- "rimraf": "^3.0.2",
75
- "semver": "^7.3.5",
76
- "underscore": "^1.13.1",
77
- "unzipper": "^0.10.11",
78
- "write-json-file": "^4.3.0"
79
- },
80
- "devDependencies": {
81
- "@apify/eslint-config": "^0.1.4",
82
- "@oclif/dev-cli": "^1.26.0",
83
- "@oclif/test": "^1.2.8",
84
- "chai": "^4.3.4",
85
- "chai-as-promised": "^7.1.1",
86
- "eslint": "^7.32.0",
87
- "mocha": "^8.4.0",
88
- "sinon": "^9.2.4"
89
- },
90
- "eslintIgnore": [
91
- "src/templates/*"
92
- ],
93
- "oclif": {
94
- "bin": "apify",
95
- "commands": "./src/commands",
96
- "hooks": {
97
- "prerun": [
98
- "./src/hooks/pre_run.js"
99
- ]
100
- }
2
+ "name": "apify-cli",
3
+ "version": "0.6.6-beta.0",
4
+ "description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "mocha --timeout 180000 --recursive",
8
+ "lint": "eslint src test",
9
+ "lint:fix": "eslint src test --fix",
10
+ "commands-md": "npm run manifest && oclif-dev readme",
11
+ "prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
12
+ "manifest": "rm -f oclif.manifest.json && oclif-dev manifest"
13
+ },
14
+ "files": [
15
+ "src",
16
+ "npm-shrinkwrap.json",
17
+ "oclif.manifest.json",
18
+ "index.js",
19
+ "package.json"
20
+ ],
21
+ "bin": {
22
+ "apify": "./src/bin/run"
23
+ },
24
+ "contributors": [
25
+ "Jakub Drobník <jakub.drobnik@apify.com>",
26
+ "Jan Curn <jan@apify.com>"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/apify/apify-cli.git"
31
+ },
32
+ "keywords": [
33
+ "apify",
34
+ "client",
35
+ "node",
36
+ "command",
37
+ "line",
38
+ "bash"
39
+ ],
40
+ "author": {
41
+ "name": "Apify",
42
+ "email": "support@apify.com",
43
+ "url": "https://www.apify.com"
44
+ },
45
+ "license": "Apache-2.0",
46
+ "bugs": {
47
+ "url": "https://github.com/apify/apify-cli/issues"
48
+ },
49
+ "homepage": "https://github.com/apify/apify-cli#readme",
50
+ "engines": {
51
+ "node": ">=10.0.0"
52
+ },
53
+ "dependencies": {
54
+ "@apify/actor-templates": "^0.1.1",
55
+ "@apify/http-request": "^2.1.2",
56
+ "@oclif/command": "^1.8.0",
57
+ "@oclif/config": "^1.17.0",
58
+ "@oclif/errors": "^1.3.5",
59
+ "@oclif/plugin-commands": "^1.3.0",
60
+ "@oclif/plugin-help": "^3.2.3",
61
+ "ajv": "^6.12.6",
62
+ "apify-client": "^0.6.0",
63
+ "apify-shared": "^0.6.3",
64
+ "archiver-promise": "^1.0.0",
65
+ "chalk": "^4.1.2",
66
+ "child-process-promise": "^2.2.1",
67
+ "extract-zip": "^2.0.1",
68
+ "globby": "^11.0.4",
69
+ "inquirer": "^7.3.3",
70
+ "is-online": "^9.0.1",
71
+ "load-json-file": "^6.2.0",
72
+ "mime": "^2.6.0",
73
+ "minimist": "^1.2.5",
74
+ "rimraf": "^3.0.2",
75
+ "semver": "^7.3.5",
76
+ "underscore": "^1.13.1",
77
+ "unzipper": "^0.10.11",
78
+ "write-json-file": "^4.3.0"
79
+ },
80
+ "devDependencies": {
81
+ "@apify/eslint-config": "^0.1.4",
82
+ "@oclif/dev-cli": "^1.26.0",
83
+ "@oclif/test": "^1.2.8",
84
+ "chai": "^4.3.4",
85
+ "chai-as-promised": "^7.1.1",
86
+ "eslint": "^7.32.0",
87
+ "mocha": "^8.4.0",
88
+ "sinon": "^9.2.4"
89
+ },
90
+ "eslintIgnore": [
91
+ "src/templates/*"
92
+ ],
93
+ "oclif": {
94
+ "bin": "apify",
95
+ "commands": "./src/commands",
96
+ "hooks": {
97
+ "prerun": [
98
+ "./src/hooks/pre_run.js"
99
+ ]
101
100
  }
101
+ }
102
102
  }
package/src/lib/utils.js CHANGED
@@ -186,6 +186,9 @@ const createSourceFiles = async (paths) => {
186
186
  || contentType.includes('javascript')
187
187
  || contentType.includes('json')
188
188
  || contentType.includes('xml')
189
+ // Detected mime-type for .ts(x) files is video/mp2t. But for us it's almost always typescript, which we want to treat as text
190
+ || filePath.endsWith('.ts')
191
+ || filePath.endsWith('.tsx')
189
192
  )
190
193
  ? SOURCE_FILE_FORMATS.TEXT
191
194
  : SOURCE_FILE_FORMATS.BASE64;