Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move build to tsup, update top level entries, ignore artifacts #62

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16,246 changes: 0 additions & 16,246 deletions .bin/parkin.js

This file was deleted.

7 changes: 0 additions & 7 deletions .bin/parkin.js.map

This file was deleted.

11 changes: 10 additions & 1 deletion .gitignore
Copy link
Owner

@lancetipton lancetipton Sep 12, 2023

Choose a reason for hiding this comment

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

I have a custom publish cli / cmd that I run locally the uses the /docs and /build files.
I get why you ignored them, but means I probably need to change how new versions are published.

I'm completely open to that, and most likely it would be best to add it as a github action , so it's automated when changes are merged into main.

But until that's added I'd have to figure out a new way to publish the changes to github/pages for the demo site and npm for the package if these files are no longer part of the repo?

Or I'm open to another path if you have something in mind?

Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,13 @@ reports/
# helper file testing out the cli
src/bin/testCli.ts

.cacheVersion
.cacheVersion

build/*.d.ts
build/*.d.mts
build/*.d.ts.map
build/*.js
build/*.js.map
build/*.mjs
build/*.mjs.map
docs/parkin/**
69 changes: 0 additions & 69 deletions configs/build.config.ts

This file was deleted.

37 changes: 0 additions & 37 deletions configs/cli.build.config.ts

This file was deleted.

17 changes: 17 additions & 0 deletions configs/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: [
'src/index.ts',
'src/global.ts',
'src/parkin.ts',
'src/test/index.ts',
'src/test/global.ts',
'src/bin/reporters/index.ts',
],
outDir: 'build',
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
clean: true,
})
Loading