Skip to content

Commit

Permalink
Change bundle location to root (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersnylund authored Apr 14, 2023
1 parent 71187f7 commit f6466ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dist/
index.js
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ dist
.tern-port

.DS_Store

index.js
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
"version": "1.4.0",
"private": false,
"description": "8-bit-sheep JSON Resume Theme",
"main": "dist/index.js",
"main": "index.js",
"scripts": {
"typecheck": "tsc --noEmit",
"build": "npm run clean && tsup && cp index.html dist/index.html",
"clean": "rm -rf dist",
"create-example-html": "resume export build/example.html --format html --theme ./dist",
"create-example-pdf": "resume export build/example.pdf --format pdf --theme ./dist",
"build": "npm run clean && tsup",
"clean": "rm -f index.js",
"create-example-html": "resume export build/example.html --format html --theme .",
"create-example-pdf": "resume export build/example.pdf --format pdf --theme .",
"dev": "vite",
"lint": "eslint .",
"test": "vitest",
"prepack": "npm run typecheck && npm run lint && CI=true npm run test && npm run build && npm run create-example-html && npm run create-example-pdf"
},
"files": [
"dist"
"index.js",
"index.html"
],
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export default defineConfig({
entry: ['src/index.tsx'],
target: 'node16',
minify: true,
outDir: '.',
});

0 comments on commit f6466ed

Please sign in to comment.