Skip to content

Commit

Permalink
Merge pull request #5 from marvel-uiuc/main
Browse files Browse the repository at this point in the history
Update publish configuration
  • Loading branch information
bryanjonker-illinois authored Aug 21, 2024
2 parents de0f991 + bae4e43 commit 1e001c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ jobs:
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm rebuild
- run: npm run-script build
- name: Install to npm
- name: Install dependencies
run: npm ci
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.TOOLKIT_NPM_SECRET}}
13 changes: 11 additions & 2 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,24 @@
"license": "MIT",
"version": "0.0.1",
"type": "module",
"files": [
"src/**",
"dist/**",
"builder/**"
],
"exports": {
".": {
"import": "./src/<%= name %>.js"
"import": "./src/<%= name %>.js",
"require": "./dist/<%= name %>.cjs",
"default": "./dist/<%= name %>.js"
}
},
"main":"./dist/<%= name %>.js",
"scripts": {
"dev": "vite",
"build": "vite build --config vite.build.config.js --emptyOutDir",
"preview": "vite preview"
"preview": "vite preview",
"prepack": "npm run build"
},
"dependencies": {
"lit": "3.1.3"
Expand Down

0 comments on commit 1e001c6

Please sign in to comment.