Skip to content

Commit d14d24f

Browse files
authored
📦 Use bundler (#19)
Uses esbuild to bundle the output. This (neglibly) reduces packed size, but enables better DX for developing css-typed (ex: allows TypeScript). It does not bundle its dependencies to allow for sharing dependencies in consumer packages. | | Before | After | Diff | | :------: | ------: | -----: | :--: | | packed | 5.8 kB | 4.4 kB | -24% | | unpacked | 13.7 kB | 9.2 kB | -33% | Closes #7
1 parent 09c3302 commit d14d24f

File tree

6 files changed

+582
-133
lines changed

6 files changed

+582
-133
lines changed

‎.github/workflows/pipeline.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
node-version: ${{ matrix.node }}
7171

7272
- name: Install
73-
run: npm install --omit=dev
73+
run: npm install
7474

7575
- name: Build
7676
run: npm run build
@@ -113,13 +113,10 @@ jobs:
113113
registry-url: https://registry.npmjs.org
114114

115115
- name: Set version
116-
run: |
117-
expr='s/0.0.0-gitversion/${{ env.GitVersion_SemVer }}/g'
118-
sed -i "$expr" package.json
119-
sed -i "$expr" src/version.js
116+
run: sed -i 's/0.0.0-gitversion/${{ env.GitVersion_SemVer }}/g' package.json
120117

121118
- name: Install
122-
run: npm install --omit=dev
119+
run: npm install
123120

124121
- name: Publish
125122
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)