Skip to content

Commit

Permalink
typesnippetGH-79: Include locale into the package
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan committed Jun 28, 2024
1 parent a5e31e8 commit 2761767
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,28 @@
"default": "./styles.d.ts"
}
},
"./locale": {
"import": "./locale.js",
"require": "./locale.cjs.js",
"types": {
"default": "./locale.d.ts"
}
},
"./package.json": "./package.json"
},
"files": [
"index*",
"types*",
"styles*",
"locale*",
"LICENSE",
"resources",
"README.md"
],
"scripts": {
"rename": "bash -c 'for file in *.js; do mv $file \"${file%.js}.$0.js\"; done'",
"build": "tsc --module commonjs && npm run rename -- cjs && tsc --declaration",
"prebuild": "rm -r resources index* types* styles* || true",
"prebuild": "rm -r resources index* locale* types* styles* || true",
"postpack": "tsx scripts/prepare-package.ts",
"test": "jest --config jestconfig.json",
"postbuild": "cp -r src/resources ."
Expand Down

0 comments on commit 2761767

Please sign in to comment.