@teambit/bundler 1.0.106 → 1.0.108

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/package.json CHANGED
@@ -1,43 +1,39 @@
1
1
  {
2
2
  "name": "@teambit/bundler",
3
- "version": "1.0.106",
3
+ "version": "1.0.108",
4
4
  "homepage": "https://bit.cloud/teambit/compilation/bundler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "bundler",
9
- "version": "1.0.106"
9
+ "version": "1.0.108"
10
10
  },
11
11
  "dependencies": {
12
12
  "cli-highlight": "2.1.9",
13
- "ink": "3.2.0",
14
13
  "lodash": "4.17.21",
15
- "core-js": "^3.0.0",
16
- "@babel/runtime": "7.20.0",
14
+ "ink": "3.2.0",
17
15
  "@teambit/harmony": "0.4.6",
18
- "@teambit/envs": "1.0.106",
19
- "@teambit/builder": "1.0.106",
20
- "@teambit/component": "1.0.106",
21
- "@teambit/cli": "0.0.839",
22
- "@teambit/dependency-resolver": "1.0.106",
23
- "@teambit/graphql": "1.0.106",
24
- "@teambit/pubsub": "1.0.106",
16
+ "@teambit/envs": "1.0.108",
17
+ "@teambit/builder": "1.0.108",
18
+ "@teambit/component": "1.0.108",
19
+ "@teambit/cli": "0.0.840",
20
+ "@teambit/dependency-resolver": "1.0.108",
21
+ "@teambit/graphql": "1.0.108",
22
+ "@teambit/pubsub": "1.0.108",
25
23
  "@teambit/toolbox.network.get-port": "1.0.4"
26
24
  },
27
25
  "devDependencies": {
28
- "@types/react": "^17.0.8",
29
26
  "@types/lodash": "4.14.165",
30
27
  "@types/mocha": "9.1.0",
31
- "@types/node": "12.20.4",
32
- "@types/react-dom": "^17.0.5",
33
- "@types/jest": "^26.0.0",
34
- "@types/testing-library__jest-dom": "5.9.5"
28
+ "@types/jest": "^29.2.2",
29
+ "@types/testing-library__jest-dom": "^5.9.5",
30
+ "@teambit/harmony.envs.core-aspect-env": "0.0.13"
35
31
  },
36
32
  "peerDependencies": {
37
33
  "@apollo/client": "^3.6.0",
38
- "@teambit/legacy": "1.0.624",
39
- "react": "^16.8.0 || ^17.0.0",
40
- "react-dom": "^16.8.0 || ^17.0.0"
34
+ "react": "^17.0.0 || ^18.0.0",
35
+ "@types/react": "^18.2.12",
36
+ "@teambit/legacy": "1.0.624"
41
37
  },
42
38
  "license": "Apache-2.0",
43
39
  "optionalDependencies": {},
@@ -51,7 +47,7 @@
51
47
  },
52
48
  "private": false,
53
49
  "engines": {
54
- "node": ">=12.22.0"
50
+ "node": ">=16.0.0"
55
51
  },
56
52
  "repository": {
57
53
  "type": "git",
@@ -60,12 +56,9 @@
60
56
  "keywords": [
61
57
  "bit",
62
58
  "bit-aspect",
59
+ "bit-core-aspect",
63
60
  "components",
64
61
  "collaboration",
65
- "web",
66
- "react",
67
- "react-components",
68
- "angular",
69
- "angular-components"
62
+ "web"
70
63
  ]
71
64
  }
package/select-port.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { Port } from '@teambit/toolbox.network.get-port';
2
+
3
+ /**
4
+ * get an available port between range 3000 to 3200 or from port range
5
+ */
6
+ export async function selectPort(range: number[] | number): Promise<number> {
7
+ return Port.getPortFromRange(range);
8
+ }
package/tsconfig.json CHANGED
@@ -1,38 +1,33 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable",
8
- "ScriptHost"
4
+ "esnext",
5
+ "dom",
6
+ "dom.Iterable"
9
7
  ],
10
- "target": "es2015",
11
- "module": "CommonJS",
12
- "jsx": "react",
13
- "allowJs": true,
14
- "composite": true,
8
+ "target": "es2020",
9
+ "module": "es2020",
10
+ "jsx": "react-jsx",
15
11
  "declaration": true,
16
12
  "sourceMap": true,
17
- "skipLibCheck": true,
18
13
  "experimentalDecorators": true,
19
- "outDir": "dist",
14
+ "skipLibCheck": true,
20
15
  "moduleResolution": "node",
21
16
  "esModuleInterop": true,
22
- "rootDir": ".",
23
17
  "resolveJsonModule": true,
24
- "emitDeclarationOnly": true,
25
- "emitDecoratorMetadata": true,
26
- "allowSyntheticDefaultImports": true,
27
- "strictPropertyInitialization": false,
28
- "strict": true,
29
- "noImplicitAny": false,
30
- "preserveConstEnums": true
18
+ "allowJs": true,
19
+ "outDir": "dist",
20
+ "emitDeclarationOnly": true
31
21
  },
32
22
  "exclude": [
23
+ "artifacts",
24
+ "public",
33
25
  "dist",
26
+ "node_modules",
27
+ "package.json",
34
28
  "esm.mjs",
35
- "package.json"
29
+ "**/*.cjs",
30
+ "./dist"
36
31
  ],
37
32
  "include": [
38
33
  "**/*",
package/types/asset.d.ts CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
5
5
  declare module '*.svg' {
6
6
  import type { FunctionComponent, SVGProps } from 'react';
7
7
 
8
- export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
9
11
  const src: string;
10
12
  export default src;
11
13
  }
12
-
13
- // @TODO Gilad
14
14
  declare module '*.jpg' {
15
15
  const value: any;
16
16
  export = value;
@@ -27,3 +27,15 @@ declare module '*.bmp' {
27
27
  const value: any;
28
28
  export = value;
29
29
  }
30
+ declare module '*.otf' {
31
+ const value: any;
32
+ export = value;
33
+ }
34
+ declare module '*.woff' {
35
+ const value: any;
36
+ export = value;
37
+ }
38
+ declare module '*.woff2' {
39
+ const value: any;
40
+ export = value;
41
+ }