|
2 | 2 | "name": "@nuxtjs/composition-api",
|
3 | 3 | "version": "0.12.6",
|
4 | 4 | "description": "Composition API hooks for Nuxt",
|
5 |
| - "license": "MIT", |
6 |
| - "repository": "nuxt-community/composition-api", |
7 |
| - "author": { |
8 |
| - "name": "Daniel Roe", |
9 |
| - |
10 |
| - "url": "https://roe.dev" |
11 |
| - }, |
12 | 5 | "keywords": [
|
13 | 6 | "vue",
|
14 | 7 | "vuejs",
|
|
17 | 10 | "typescript",
|
18 | 11 | "javascript"
|
19 | 12 | ],
|
| 13 | + "repository": "nuxt-community/composition-api", |
| 14 | + "license": "MIT", |
| 15 | + "author": { |
| 16 | + "name": "Daniel Roe", |
| 17 | + |
| 18 | + "url": "https://roe.dev" |
| 19 | + }, |
| 20 | + "exports": { |
| 21 | + "babel": { |
| 22 | + "require": "./lib/babel.js", |
| 23 | + "import": "./lib/babel.es.js" |
| 24 | + }, |
| 25 | + "entrypoint": { |
| 26 | + "require": "./lib/entrypoint.js", |
| 27 | + "import": "./lib/entrypoint.es.js" |
| 28 | + } |
| 29 | + }, |
20 | 30 | "main": "lib/index.js",
|
21 | 31 | "types": "lib/index.d.ts",
|
22 | 32 | "files": [
|
|
26 | 36 | ],
|
27 | 37 | "scripts": {
|
28 | 38 | "build": "yarn clean && yarn compile",
|
29 |
| - "watch": "yarn compile -w", |
30 | 39 | "clean": "rm -rf lib/*",
|
31 | 40 | "clean:fixture": "rm -rf dist/ test/fixture/.nuxt",
|
32 |
| - "compile": "rollup -c", |
| 41 | + "compile": "siroc build", |
33 | 42 | "fixture": "cross-env CMD=dev yarn nuxt-run",
|
34 |
| - "fixture:prod": "yarn clean:fixture && cross-env CMD=build yarn nuxt-run && cross-env CMD=start yarn nuxt-run", |
35 |
| - "fixture:generate:export": "yarn clean:fixture && cross-env GENERATE=true PORT=6000 CMD=generate yarn nuxt-run", |
36 | 43 | "fixture:generate": "yarn fixture:generate:export && yarn http-server -s -p 5000 dist",
|
| 44 | + "fixture:generate:export": "yarn clean:fixture && cross-env GENERATE=true PORT=6000 CMD=generate yarn nuxt-run", |
| 45 | + "fixture:prod": "yarn clean:fixture && cross-env CMD=build yarn nuxt-run && cross-env CMD=start yarn nuxt-run", |
37 | 46 | "lint": "run-s lint:all:*",
|
38 | 47 | "lint:all:eslint": "yarn lint:eslint --ext .js,.ts,.vue .",
|
39 | 48 | "lint:all:prettier": "yarn lint:prettier \"**/*.{js,json,ts,vue}\"",
|
|
45 | 54 | "prepublishOnly": "yarn lint && yarn test",
|
46 | 55 | "release": "release-it",
|
47 | 56 | "test": "run-s test:*",
|
| 57 | + "test:e2e-generated": "cross-env GENERATE=true PORT=5000 start-server-and-test fixture:generate 5000 \"testcafe -q firefox:headless test/e2e\"", |
48 | 58 | "test:e2e-globals": "cross-env GLOBALS=true PORT=3000 start-server-and-test fixture:prod 3000 \"testcafe firefox:headless test/e2e\"",
|
49 | 59 | "test:e2e-ssr": "cross-env PORT=4000 start-server-and-test fixture:prod 4000 \"testcafe firefox:headless test/e2e\"",
|
50 |
| - "test:e2e-generated": "cross-env GENERATE=true PORT=5000 start-server-and-test fixture:generate 5000 \"testcafe -q firefox:headless test/e2e\"", |
51 | 60 | "test:types": "tsd",
|
52 |
| - "test:unit": "jest" |
53 |
| - }, |
54 |
| - "tsd": { |
55 |
| - "directory": "test/tsd", |
56 |
| - "compilerOptions": { |
57 |
| - "rootDir": "." |
58 |
| - } |
59 |
| - }, |
60 |
| - "gitHooks": { |
61 |
| - "pre-commit": "lint-staged" |
| 61 | + "test:unit": "jest", |
| 62 | + "watch": "yarn compile -w" |
62 | 63 | },
|
63 | 64 | "dependencies": {
|
64 | 65 | "@vue/composition-api": "1.0.0-beta.16",
|
|
72 | 73 | "@nuxt/types": "^2.14.6",
|
73 | 74 | "@nuxtjs/module-test-utils": "^1.6.3",
|
74 | 75 | "@release-it/conventional-changelog": "^2.0.0",
|
| 76 | + "@types/fs-extra": "^9.0.2", |
75 | 77 | "@types/jest": "^26.0.14",
|
76 | 78 | "@types/normalize-path": "^3.0.0",
|
77 | 79 | "@typescript-eslint/eslint-plugin": "^4.4.0",
|
|
91 | 93 | "nuxt": "^2.14.6",
|
92 | 94 | "prettier": "^2.1.2",
|
93 | 95 | "release-it": "14.1.0",
|
94 |
| - "rollup": "^2.29.0", |
95 |
| - "rollup-plugin-copy": "^3.3.0", |
96 |
| - "rollup-plugin-dts": "^1.4.13", |
97 |
| - "rollup-plugin-typescript2": "^0.27.3", |
| 96 | + "siroc": "^0.4.0", |
98 | 97 | "start-server-and-test": "^1.11.5",
|
99 | 98 | "testcafe": "1.9.4",
|
100 | 99 | "tsd": "^0.13.1",
|
|
103 | 102 | },
|
104 | 103 | "peerDependencies": {
|
105 | 104 | "@nuxt/vue-app": "^2.14.6",
|
| 105 | + "fs-extra": "^8.1.0", |
106 | 106 | "nuxt": "^2.14.6",
|
107 | 107 | "vue": "^2"
|
108 | 108 | },
|
| 109 | + "gitHooks": { |
| 110 | + "pre-commit": "lint-staged" |
| 111 | + }, |
| 112 | + "tsd": { |
| 113 | + "directory": "test/tsd", |
| 114 | + "compilerOptions": { |
| 115 | + "rootDir": "." |
| 116 | + } |
| 117 | + }, |
109 | 118 | "volta": {
|
110 | 119 | "node": "12.19.0"
|
111 | 120 | }
|
|
0 commit comments