Skip to content

Commit

Permalink
Update quality of package
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Sep 15, 2021
1 parent ccf1394 commit b516fc1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import babel from 'rollup-plugin-babel'
export default {
input: 'src/index.js',
output: [
{ file: 'index.cjs', format: 'cjs', exports: 'default', sourcemap: true, strict: false },
{ file: 'index.mjs', format: 'esm', sourcemap: true, strict: false }
{ file: 'index.cjs', format: 'cjs', exports: 'default', sourcemap: false, strict: false },
{ file: 'index.mjs', format: 'esm', sourcemap: false, strict: false }
],
plugins: [
patchBabelPluginSyntaxImportMeta(),
Expand Down
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@
"repository": "csstools/postcss-normalize",
"homepage": "https://github.com/csstools/postcss-normalize#readme",
"bugs": "https://github.com/csstools/postcss-normalize/issues",
"main": "index.cjs",
"module": "index.mjs",
"main": "./index.cjs",
"module": "./index.mjs",
"types": "./index.d.ts",
"exports": {
"require": "./index.cjs",
"import": "./index.mjs",
"default": "./index.mjs"
},
"files": [
"index.d.ts",
"index.cjs",
"index.cjs.map",
"index.mjs",
"index.mjs.map"
"index.mjs"
],
"scripts": {
"prepublishOnly": "npm test",
"build": "rollup --config .rollup.js --silent",
"lint": "eslint --cache .gitignore --quiet",
"lint": "package-check && eslint --cache .gitignore --quiet",
"test": "npm run lint && npm run build && npm run tape",
"tape": "postcss-tape"
},
Expand All @@ -38,6 +43,7 @@
"@babel/core": "^7.15.5",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.15.6",
"@skypack/package-check": "^0.2.2",
"browserslist": "^4.16.5",
"eslint": "^7.32.0",
"postcss": "^8.2.13",
Expand Down

0 comments on commit b516fc1

Please sign in to comment.