Skip to content

Commit

Permalink
build!: remove bundled ESM/UMD support
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Sep 13, 2024
1 parent 45ba276 commit 9ce29e9
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 222 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build the codebase
run: npm run build:lib

- name: Test types
run: npm run test:types

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ jobs:
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: Build
run: |
npm install
npm run build:docs & npm run build:lib
- name: Install dependencies
run: npm install

- name: Build docs
run: npm run build:docs

- name: Publish package (stable)
if: ${{ ! contains(github.ref, '-next') }}
env:
Expand All @@ -28,6 +30,7 @@ jobs:
# https://docs.npmjs.com/generating-provenance-statements
run: |
npm publish --provenance --access public
- name: Publish package (next)
if: ${{ contains(github.ref, '-next') }}
env:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
lib
node_modules
.DS_Store
.vscode
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/lib
/css
/types
.svelte-kit
Expand Down
176 changes: 0 additions & 176 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.85.2",
"license": "Apache-2.0",
"description": "Svelte implementation of the Carbon Design System",
"type": "module",
"svelte": "./src/index.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
Expand All @@ -23,9 +25,6 @@
"import": "./src/*.js"
}
},
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./types/index.d.ts",
"sideEffects": [
"css/*.css"
],
Expand All @@ -34,7 +33,6 @@
"lint": "prettier --write \"**/*.{svelte,md,js,json,ts}\"",
"build:css": "node scripts/build-css",
"build:docs": "node scripts/build-docs",
"build:lib": "rollup -c",
"format": "prettier --write \"./**/*.{svelte,js,md}\"",
"postinstall": "ibmtelemetry --config=telemetry.yml",
"release": "standard-version && npm run build:docs"
Expand All @@ -44,17 +42,12 @@
"flatpickr": "4.6.9"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^13.3.0",
"autoprefixer": "^10.4.8",
"carbon-components": "10.58.12",
"carbon-icons-svelte": "^12.1.0",
"postcss": "^8.4.16",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"rollup": "^2.78.1",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.49.11",
"standard-version": "^9.5.0",
"sveld": "^0.20.2",
Expand Down Expand Up @@ -85,7 +78,6 @@
"carbon design system"
],
"files": [
"lib",
"src",
"types",
"css",
Expand Down
Loading

0 comments on commit 9ce29e9

Please sign in to comment.