feat(composable): es build

This commit is contained in:
Guillaume Chau
2020-10-17 14:57:29 +02:00
parent 97be1e2722
commit cfbb9da5af
2 changed files with 14 additions and 5 deletions
+4 -3
View File
@@ -21,14 +21,15 @@
"publishConfig": {
"access": "public"
},
"main": "dist/index.js",
"main": "dist/vue-apollo-composable.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"dev": "yarn build --watch",
"build": "tsc --outDir dist -d",
"dev": "tsc --watch --outFile dist/vue-apollo-composable.js",
"build": "tsc --outFile dist/vue-apollo-composable.js && tsc -m es2015 ",
"prepublishOnly": "yarn test && yarn build",
"test": "yarn test:types",
"test:types": "tsc -p tests/types/"
+10 -2
View File
@@ -1,10 +1,18 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"module": "amd",
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
"skipLibCheck": true,
"outDir": "dist",
"moduleResolution": "node",
"lib": [
"DOM",
"ES2015",
"ES2020.Symbol.WellKnown"
],
"declaration": true
},
"include": [
"src/**/*",