From ad21529b58cfb8f9c8e198b44564ce1d21ad1bcd Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 23 Dec 2021 20:44:03 +0100 Subject: [PATCH] chore: update playground --- playground/package.json | 18 +++++++++++------- playground/src/custom.ts | 1 + 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/playground/package.json b/playground/package.json index 653ee1c..6756c32 100644 --- a/playground/package.json +++ b/playground/package.json @@ -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" + ] } } diff --git a/playground/src/custom.ts b/playground/src/custom.ts index e0efd15..2e00f5b 100644 --- a/playground/src/custom.ts +++ b/playground/src/custom.ts @@ -1 +1,2 @@ // Custom entry +export const customFn = () => {}