Skip to content

Commit

Permalink
Only export as module
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed May 14, 2021
1 parent 8baa1fa commit ef6e7f6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 38 deletions.
1 change: 0 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ jobs:
npm ci
npm run lint
npm test
npm run build
env:
CI: true
3 changes: 1 addition & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm ci --production
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
23 changes: 14 additions & 9 deletions package-lock.json

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

30 changes: 4 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"name": "@hckrnews/objects",
"description": "Hack JavaScript objects",
"version": "2.3.5",
"version": "3.0.0",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
},
"license": "LGPL-3.0",
"scripts": {
"build": "microbundle --target node",
"dev": "microbundle --target node watch",
"lint": "eslint src/*.js --config .eslintrc",
"lint:fix": "eslint src/*.js --config .eslintrc --fix",
"test": "jest",
Expand All @@ -19,29 +17,9 @@
},
"type": "module",
"files": [
"src/objects.js",
"dist/objects.js",
"dist/objects.js.map",
"dist/objects.module.mjs",
"dist/objects.module.mjs.map",
"dist/objects.modern.mjs",
"dist/objects.modern.mjs.map",
"dist/objects.umd.cjs",
"dist/objects.umd.cjs.map"
"src/objects.js"
],
"source": "src/objects.js",
"main": "dist/objects.js",
"module": "dist/objects.module.mjs",
"esmodule": "dist/objects.modern.mjs",
"unpkg": "dist/objects.umd.cjs",
"umd:main": "dist/objects.umd.cjs",
"exports": {
"node": {
"module": "./src/objects.js",
"require": "./dist/objects.umd.cjs"
},
"default": "./src/objects.js"
},
"main": "src/objects.js",
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
Expand Down Expand Up @@ -74,6 +52,6 @@
"flat"
],
"dependencies": {
"@hckrnews/validator": "^4.4.2"
"@hckrnews/validator": "^5.0.0"
}
}

0 comments on commit ef6e7f6

Please sign in to comment.