Skip to content

Commit

Permalink
chore: update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 23, 2021
1 parent c58ffaa commit ad21529
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"private": true,
"name": "mymodule",
"main": "./dist/module.cjs",
"types": "./dist/module.d.ts",
"build": {
"entries": [
"./src/custom"
]
"private": true,
"scripts": {
"build": "nuxt-build-module",
"prepack": "npm run build"
},
"exports": {
".": {
"require": "./dist/module.cjs",
"import": "./dist/module.mjs"
}
},
"main": "./dist/module.cjs",
"types": "./dist/module.d.ts",
"build": {
"entries": [
"./src/custom"
]
}
}
1 change: 1 addition & 0 deletions playground/src/custom.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// Custom entry
export const customFn = () => {}

0 comments on commit ad21529

Please sign in to comment.