Skip to content

Commit

Permalink
feat: add css import export path
Browse files Browse the repository at this point in the history
fixes #400
  • Loading branch information
scttcper committed Jan 18, 2022
1 parent cf55d5a commit 05f16a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"cpy": "cpy",
"start": "ng serve",
"build": "ng-packagr -p src/lib/picker/package.json",
"postbuild": "cpy README.md LICENSE src/lib/picker/picker.css dist",
"postbuild": "cpy README.md LICENSE dist",
"build-data": "ts-node --project=scripts/tsconfig.json scripts/build-data.ts",
"test": "ng test --watch=false",
"test:watch": "ng test",
Expand Down
14 changes: 11 additions & 3 deletions src/lib/picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@
"$schema": "../../../node_modules/ng-packagr/package.schema.json",
"name": "@ctrl/ngx-emoji-mart",
"version": "0.0.0",
"homepage": "https://ngx-emoji-mart.vercel.app",
"repository": "scttcper/ngx-emoji-mart",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"description": "Customizable Slack-like emoji picker for Angular",
"peerDependencies": {
"@angular/core": ">=12.0.0-0"
},
"homepage": "https://ngx-emoji-mart.vercel.app",
"repository": "scttcper/ngx-emoji-mart",
"license": "MIT",
"exports": {
"./picker": {
"default": "./picker.css"
}
},
"sideEffects": [ "*.css" ],
"ngPackage": {
"lib": {
"entryFile": "public_api.ts"
},
"assets": [
"./picker.css"
],
"dest": "../../../dist"
},
"keywords": [
Expand Down

0 comments on commit 05f16a7

Please sign in to comment.