Skip to content

Commit

Permalink
fix(@formatjs/intl-enumerator): fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Feb 20, 2023
1 parent 87470c9 commit 67180d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions packages/intl-enumerator/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ load("@npm//:defs.bzl", "npm_link_all_packages")
load("//:index.bzl", "ZONES")
load("//tools:index.bzl", "check_format", "generate_src_file", "ts_compile")
load("//tools:jest.bzl", "jest_test")
load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild")

npm_link_all_packages(name = "node_modules")

Expand All @@ -17,6 +18,8 @@ npm_package(
"README.md",
"package.json",
":dist",
# polyfill-library uses this
"polyfill.iife.js",
],
package = "@formatjs/%s" % PACKAGE_NAME,
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -133,3 +136,15 @@ generate_src_file(
],
entry_point = "scripts/units.ts",
)

esbuild(
name = "polyfill.iife",
config = {
"resolveExtensions": [".js"],
},
entry_point = "lib/polyfill.js",
deps = [
":dist-esm",
"//:node_modules/tslib",
],
)
2 changes: 1 addition & 1 deletion packages/intl-enumerator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": "Michele Riva <ciao@micheleriva.it>",
"homepage": "https://github.com/formatjs/formatjs#readme",
"license": "MIT",
"main": "index.umd.js",
"main": "index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
Expand Down

0 comments on commit 67180d1

Please sign in to comment.