feat(composable): es build
This commit is contained in:
@@ -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/"
|
||||
|
||||
@@ -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/**/*",
|
||||
|
||||
Reference in New Issue
Block a user