Skip to content

Commit

Permalink
fix: module bundling (vuejs#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertury committed Oct 26, 2020
1 parent fb1ab4d commit 7430231
Show file tree
Hide file tree
Showing 4 changed files with 585 additions and 42 deletions.
7 changes: 7 additions & 0 deletions packages/vue-apollo-composable/bili.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
input: 'src/index.ts',
output: {
format: ['esm', 'cjs', 'amd'],
moduleName: 'Vuelidate',
},
}
8 changes: 5 additions & 3 deletions packages/vue-apollo-composable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"publishConfig": {
"access": "public"
},
"main": "dist/vue-apollo-composable.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"module": "dist/index.esm.js",
"files": [
"dist"
],
"scripts": {
"dev": "tsc --watch -m es2015",
"build": "tsc --outFile dist/vue-apollo-composable.js && tsc -m es2015",
"build": "bili",
"prepublishOnly": "yarn test && yarn build",
"test": "yarn test:lint && yarn test:types",
"test:lint": "eslint . --ext .js,.ts",
Expand All @@ -51,12 +51,14 @@
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"@vue/composition-api": "^1.0.0-beta.16",
"bili": "^5.0.5",
"eslint": "^7.11.0",
"eslint-config-standard-with-typescript": "^19.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"rollup-plugin-typescript2": "^0.28.0",
"typescript": "^4.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "amd",
"module": "CommonJS",
"sourceMap": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
Expand Down
Loading

0 comments on commit 7430231

Please sign in to comment.