Skip to content

Commit c5e1ebd

Browse files
committed
GH-35: Include locale into the package
1 parent 433173d commit c5e1ebd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,21 @@
4242
"default": "./styles.d.ts"
4343
}
4444
},
45+
"./locale": {
46+
"import": "./locale.js",
47+
"require": "./locale.cjs.js",
48+
"types": {
49+
"default": "./locale.d.ts"
50+
}
51+
},
4552
"./stylesheet.json": "./stylesheet.json",
4653
"./package.json": "./package.json"
4754
},
4855
"files": [
4956
"index*",
5057
"types*",
5158
"styles*",
59+
"locale*",
5260
"LICENSE",
5361
"metadata",
5462
"README.md",
@@ -58,7 +66,7 @@
5866
"scripts": {
5967
"rename": "bash -c 'for file in *.js; do mv $file \"${file%.js}.$0.js\"; done'",
6068
"build": "tsc --module commonjs && npm run rename -- cjs && tsc --declaration",
61-
"prebuild": "rm -r metadata stylesheet.json index* types* styles* || true",
69+
"prebuild": "rm -r metadata stylesheet.json index* locale* types* styles* || true",
6270
"postbuild": "cp resources/stylesheet.json stylesheet.json",
6371
"test": "jest --config jestconfig.json"
6472
},

0 commit comments

Comments
 (0)