Skip to content

Commit

Permalink
fix!: split out types and imports
Browse files Browse the repository at this point in the history
* you will no longer be able to import directly from `@nuxtjs/composition-api` outside of the nuxt context

relates to #334
  • Loading branch information
danielroe committed Feb 11, 2021
1 parent 57dfefc commit cc81ad6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"./": "./"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"types": "lib/entrypoint.d.ts",
"files": [
"lib/**/*",
"lib/index.d.ts",
Expand Down Expand Up @@ -98,7 +98,7 @@
"nuxt": "^2.14.12",
"prettier": "^2.2.1",
"release-it": "14.3.0",
"siroc": "0.6.4",
"siroc": "0.6.5",
"start-server-and-test": "^1.12.0",
"testcafe": "1.10.1",
"tsd": "^0.14.0",
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,3 @@ export default compositionApiModule
// eslint-disable-next-line
// @ts-ignore
compositionApiModule.meta = require('../package.json')

export * from './entrypoint'
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11869,10 +11869,10 @@ simple-swizzle@^0.2.2:
dependencies:
is-arrayish "^0.3.1"

siroc@0.6.4:
version "0.6.4"
resolved "https://registry.yarnpkg.com/siroc/-/siroc-0.6.4.tgz#da15d8b1ab2c7792506facfbc0b3485932bc1feb"
integrity sha512-1Ww4OHAdoeo8rMNyMdov1x7uyCbi2gJ0/1wXpIfozb0DUbyW8GA33qntdp8P27Qz4s9ezI4+ygl5kzVhJG8u5A==
siroc@0.6.5:
version "0.6.5"
resolved "https://registry.yarnpkg.com/siroc/-/siroc-0.6.5.tgz#22832410d60795d7b158d5148eb2d126ca9c9c83"
integrity sha512-GmEuQras7yuA2+nE8PX6HjLyQyoXrldt6ipXyAfCBRipynz5RDGwvAXYhnwD2g5U2PbPikytB/+oiRRrngSXhw==
dependencies:
"@rollup/plugin-alias" "^3.1.2"
"@rollup/plugin-commonjs" "^17.1.0"
Expand Down

1 comment on commit cc81ad6

@vercel
Copy link

@vercel vercel bot commented on cc81ad6 Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.