Skip to content

Commit

Permalink
Make helpers release-able
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Dec 12, 2024
1 parent fc490f6 commit c35ac4e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/helpers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
6 changes: 6 additions & 0 deletions packages/helpers/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
news
towncrier.toml
.changelog.draft
node_modules/
.release-it.json
.eslintrc.js
1 change: 1 addition & 0 deletions packages/helpers/news/1.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
First release. @sneridagh
2 changes: 1 addition & 1 deletion packages/helpers/news/6407.internal
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Unpin parcel version @sneridagh
Update `typescript` and `vitest` everywhere @sneridagh
Use tsup for bundling. @sneridagh
14 changes: 13 additions & 1 deletion packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"funding": "https://github.com/sponsors/plone",
"license": "MIT",
"version": "1.0.0",
"version": "1.0.0-alpha.0",
"repository": {
"type": "git",
"url": "https://github.com/plone/volto.git"
Expand All @@ -28,7 +28,19 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"files": [
"dist",
"README.md"
],
"main": "src/index.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"default": "./dist/index.cjs"
}
},
"scripts": {
"watch": "tsup",
"build": "tsup",
Expand Down
9 changes: 9 additions & 0 deletions packages/helpers/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entryPoints: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
outDir: 'dist',
clean: true,
});

0 comments on commit c35ac4e

Please sign in to comment.