svelte-i18n/package.json
Christian Kaisermann b2dc7828c5 fix: 🐛 mjs causing an elusive bug in webpack module resolution
Changed i18n.mjs to i18n.esm.js to prevent webpack to only accept .mjs
imports inside the library. Webpack was importing the cjs version of
Intl-Formatmessage and messing things up.

Issues: #36
2020-01-13 21:20:04 -03:00

90 lines
2.5 KiB
JSON

{
"name": "svelte-i18n",
"version": "2.2.1",
"main": "dist/i18n.cjs.js",
"module": "dist/i18n.esm.js",
"bin": {
"svelte-i18n": "dist/cli.js"
},
"license": "MIT",
"description": "Internationalization library for Svelte",
"author": "Christian Kaisermann <christian@kaisermann.me>",
"repository": "https://github.com/kaisermann/svelte-i18n",
"keywords": [
"svelte",
"i18n",
"internationalization",
"localization",
"translation"
],
"engines": {
"node": ">= 11.15.0"
},
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"pretest": "npm run build",
"test": "jest",
"test:ci": "jest --silent",
"test:watch": "jest --verbose --watchAll",
"lint": "eslint \"src/**/*.ts\"",
"format": "prettier --loglevel silent --write \"src/**/*.ts\" && eslint --fix \"src/**/*.ts\"",
"prerelease": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1 && git add CHANGELOG.md",
"release": " git add package.json && git commit -m \"chore(release): v$npm_package_version :tada:\"",
"postrelease": "git tag -a v$npm_package_version -m 'Release v$npm_package_version'",
"prepublishOnly": "run-s test:ci build release"
},
"files": [
"dist/"
],
"jest": {
"collectCoverage": true,
"testMatch": [
"<rootDir>/test/**/*.test.ts"
],
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
},
"peerDependencies": {
"svelte": "^3.14.1"
},
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/preset-env": "^7.7.1",
"@types/estree": "0.0.39",
"@types/intl": "^1.2.0",
"@types/jest": "^24.0.23",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"conventional-changelog-cli": "^2.0.28",
"eslint": "^6.6.0",
"eslint-config-kaisermann": "0.0.3",
"jest": "^24.9.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"rollup": "^1.26.5",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-typescript2": "^0.25.2",
"sass": "^1.23.6",
"svelte": "^3.14.1",
"svelte-preprocess": "^3.2.6",
"ts-jest": "^24.1.0",
"typescript": "^3.7.2"
},
"dependencies": {
"commander": "^4.0.1",
"deepmerge": "^4.2.2",
"dlv": "^1.1.3",
"estree-walker": "^0.9.0",
"fast-memoize": "^2.5.1",
"intl-messageformat": "^7.5.2",
"tiny-glob": "^0.2.6"
}
}