diff --git a/.npmrc b/.npmrc index b42626b..b6e362c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ -@lingdocs:registry=https://reg.lingdocs.com -//reg.lingdocs.com/:_authToken=${LINGDOCS_NPM_TOKEN} +@lingdocs:registry=https://npm.lingdocs.com +//npm.lingdocs.com/:_authToken=${LINGDOCS_NPM_TOKEN} diff --git a/package.json b/package.json index e83402a..bd29db7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.2.5", + "version": "0.2.6", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", @@ -20,7 +20,7 @@ "url": "https://github.com/lingdocs/pashto-inflector.git" }, "publishConfig": { - "registry": "https://reg.lingdocs.com" + "registry": "https://npm.lingdocs.com" }, "dependencies": { "classnames": "^2.2.6", @@ -61,7 +61,7 @@ "test": "react-scripts test", "eject": "react-scripts eject", "build-website": "node get-verbs.js && npm run build", - "build-library": "node get-verbs.js && rimraf dist && rimraf dist-cjs && tsc --project library-tsconfig.json && cp src/components/verb-info/*.svg dist/components/verb-info && rollup -c", + "build-library": "node get-verbs.js && rimraf dist && rimraf dist-cjs && tsc --project library-tsconfig.json && mkdir dist/node_modules && cp -r node_modules/classnames dist/node_modules && cp -r node_modules/pbf dist/node_modules && cp src/components/verb-info/*.svg dist/components/verb-info && rollup -c", "test-ci": "npm run test -- --watchAll=false" }, "eslintConfig": { diff --git a/rollup.config.js b/rollup.config.js index d16515e..bfe5bc6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -26,7 +26,7 @@ export default { // peerDepsExternal(), commonjs(), nodeResolve({ - resolveOnly: ['classnames'], + resolveOnly: Object.keys(pkg.dependencies), }), // use base64 image inlining for the cjs version so that the .svg s can get cosumed by node 12 etc. image(),