We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b43b3a9 commit 71d4926Copy full SHA for 71d4926
build.mjs
@@ -0,0 +1,15 @@
1
+#!/usr/bin/env zx
2
+
3
+await $`npm run lint && npx svelte-package -o package && npx vite build -c vite.dist.config.js`
4
+const pkg = await fs.readJson('package.json')
5
+pkg.scripts = undefined
6
+await fs.writeJson('package/package.json', pkg, { spaces: 2 })
7
+await fs.copy('README.md', 'package/README.md')
8
+await fs.copy('LICENSE', 'package/LICENSE')
9
+await fs.copy('package/dist/index.umd.js', 'package/dist/index.umd.cjs')
10
+await $`cd package && npx publint`
11
12
+echo`
13
+To publish to npm, run:
14
+$ cd package && npm publish --access public
15
+`
0 commit comments