Skip to content

Commit f715eb6

Browse files
committed
chore: attempt at generating package.json
1 parent e3f2445 commit f715eb6

File tree

52 files changed

+137
-294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+137
-294
lines changed

packages/babel-plugin-formatjs/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test", "pkg_npm")
2-
load("//tools:index.bzl", "check_format", "package_json_test", "ts_compile")
2+
load("//tools:index.bzl", "check_format", "populate_package_json_deps", "ts_compile")
33
load("//tools:jest.bzl", "jest_test")
44

55
exports_files(["package.json"])
@@ -94,8 +94,8 @@ jest_test(
9494
],
9595
)
9696

97-
package_json_test(
98-
name = "package_json_test",
97+
populate_package_json_deps(
98+
name = "populate_package_json_deps",
9999
deps = SRC_DEPS,
100100
)
101101

packages/babel-plugin-formatjs/package.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@
1010
"main": "index.js",
1111
"types": "index.d.ts",
1212
"author": "Long Ho <holevietlong@gmail.com>",
13-
"dependencies": {
14-
"@babel/core": "^7.10.4",
15-
"@babel/helper-plugin-utils": "^7.10.4",
16-
"@babel/plugin-syntax-jsx": "7",
17-
"@babel/traverse": "7",
18-
"@babel/types": "^7.12.11",
19-
"@formatjs/icu-messageformat-parser": "2.0.15",
20-
"@formatjs/ts-transformer": "3.7.0",
21-
"@types/babel__core": "^7.1.7",
22-
"@types/babel__helper-plugin-utils": "^7.10.0",
23-
"tslib": "^2.1.0"
24-
},
2513
"keywords": [
2614
"babel-plugin",
2715
"react-intl"

packages/cli/BUILD

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test", "pkg_npm")
2-
load("//tools:index.bzl", "check_format", "ts_compile")
2+
load("//tools:index.bzl", "check_format", "ts_compile", "populate_package_json_deps")
33
load("//tools:jest.bzl", "jest_test")
44

55
PACKAGE_NAME = "cli"
@@ -16,6 +16,7 @@ pkg_npm(
1616
deps = [
1717
"bin/formatjs",
1818
":dist",
19+
":package.json"
1920
],
2021
)
2122

@@ -158,3 +159,8 @@ check_format(
158159
],
159160
),
160161
)
162+
163+
populate_package_json_deps(
164+
name = "populate_package_json_deps",
165+
deps = SRC_DEPS,
166+
)

packages/cli/package.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,6 @@
3030
"type": "git",
3131
"url": "git+ssh://git@github.com/formatjs/formatjs.git"
3232
},
33-
"dependencies": {
34-
"@formatjs/icu-messageformat-parser": "2.0.15",
35-
"@formatjs/ts-transformer": "3.7.0",
36-
"@types/estree": "^0.0.50",
37-
"@types/fs-extra": "^9.0.1",
38-
"@types/json-stable-stringify": "^1.0.32",
39-
"@types/node": "14",
40-
"@vue/compiler-core": "^3.2.19",
41-
"@vue/compiler-sfc": "^3.2.19",
42-
"chalk": "^4.0.0",
43-
"commander": "8",
44-
"fast-glob": "^3.2.7",
45-
"fs-extra": "10",
46-
"json-stable-stringify": "^1.0.1",
47-
"loud-rejection": "^2.2.0",
48-
"tslib": "^2.1.0",
49-
"typescript": "^4.5"
50-
},
5133
"bugs": {
5234
"url": "https://github.com/formatjs/formatjs/issues"
5335
}

packages/ecma376/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test", "pkg_npm")
2-
load("//tools:index.bzl", "check_format", "package_json_test", "ts_compile")
2+
load("//tools:index.bzl", "check_format", "populate_package_json_deps", "ts_compile")
33
load("//tools:jest.bzl", "jest_test")
44

55
exports_files(["package.json"])
@@ -72,7 +72,7 @@ jest_test(
7272
deps = SRC_DEPS,
7373
)
7474

75-
package_json_test(
76-
name = "package_json_test",
75+
populate_package_json_deps(
76+
name = "populate_package_json_deps",
7777
deps = SRC_DEPS,
7878
)

packages/ecma376/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,5 @@
2222
"bugs": {
2323
"url": "https://github.com/formatjs/formatjs/issues"
2424
},
25-
"homepage": "https://github.com/formatjs/formatjs#readme",
26-
"dependencies": {
27-
"tslib": "^2.1.0"
28-
}
25+
"homepage": "https://github.com/formatjs/formatjs#readme"
2926
}

packages/ecma402-abstract/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test", "pkg_npm")
2-
load("//tools:index.bzl", "check_format", "generate_src_file", "package_json_test", "ts_compile")
2+
load("//tools:index.bzl", "check_format", "generate_src_file", "populate_package_json_deps", "ts_compile")
33
load("//tools:jest.bzl", "jest_test")
44

55
exports_files(["package.json"])
@@ -101,7 +101,7 @@ generate_src_file(
101101
entry_point = "scripts/regex-gen.ts",
102102
)
103103

104-
package_json_test(
105-
name = "package_json_test",
104+
populate_package_json_deps(
105+
name = "populate_package_json_deps",
106106
deps = SRC_DEPS,
107107
)

packages/ecma402-abstract/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
"ecma262",
1414
"format"
1515
],
16-
"dependencies": {
17-
"@formatjs/intl-localematcher": "0.2.21",
18-
"tslib": "^2.1.0"
19-
},
2016
"author": "Long Ho <holevietlong@gmail.com",
2117
"bugs": {
2218
"url": "https://github.com/formatjs/formatjs/issues"

packages/editor/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ http_server(
114114
],
115115
)
116116

117-
# package_json_test(
118-
# name="package_json_test",
117+
# populate_package_json_deps(
118+
# name="populate_package_json_deps",
119119
# deps=SRC_DEPS
120120
# )

packages/editor/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@
2727
"type": "git",
2828
"url": "git+ssh://git@github.com/formatjs/formatjs.git"
2929
},
30-
"dependencies": {
31-
"@formatjs/icu-messageformat-parser": "2.0.15",
32-
"@material-ui/core": "^4.11.3",
33-
"@material-ui/icons": "^4.11.2",
34-
"@material-ui/lab": "4.0.0-alpha.57",
35-
"@types/react": "17",
36-
"react": "17",
37-
"react-intl": "5.24.0"
38-
},
3930
"bugs": {
4031
"url": "https://github.com/formatjs/formatjs/issues"
4132
}

0 commit comments

Comments
 (0)