Skip to content

Commit

Permalink
chore: Refactor package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Nov 20, 2024
1 parent 453ac3e commit 1cc8c5e
Show file tree
Hide file tree
Showing 12 changed files with 242 additions and 258 deletions.
47 changes: 0 additions & 47 deletions libs/dateFormat/package.json

This file was deleted.

45 changes: 45 additions & 0 deletions libs/dateFormat/package2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "@jotter/dateformat",
"version": "1.0.2",
"description": "Lightweight and easy-to-use date/time formatting function that returns the formatted date/time based on the passed in placeholders.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.global.js",
"jsdelivr": "dist/index.global.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.esm.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": ["dist"],
"scripts": {
"clean": "rimraf -rf ./dist",
"build:rollup": "npm run clean && NODE_ENV=production rollup -c rollup.config.mjs",
"test": "jest"
},
"keywords": [
"dateFormat",
"date formatting",
"date",
"time",
"datetime",
"formatting",
"from now",
"to now",
"time ago"
],
"homepage": "https://github.com/Marinerer/jotter/tree/main/libs/dateFormat",
"repository": {
"type": "git",
"url": "git+https://github.com/Marinerer/jotter.git"
},
"author": "lmq <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Marinerer/jotter/issues"
}
}
50 changes: 0 additions & 50 deletions libs/emitter/package.json

This file was deleted.

47 changes: 47 additions & 0 deletions libs/emitter/package2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@jotter/emitter",
"version": "1.1.2",
"description": "Simple and modern emitter library.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.global.js",
"jsdelivr": "dist/index.global.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.esm.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": ["dist"],
"scripts": {
"clean": "rimraf -rf ./dist",
"build:rollup": "npm run clean && NODE_ENV=production rollup -c rollup.config.mjs",
"test": "jest"
},
"keywords": [
"event",
"events",
"emitter",
"pubsub",
"listener",
"on",
"once",
"emit",
"trigger",
"dispatchEvent",
"addEventListener",
"event emitter",
"event bus"
],
"homepage": "https://github.com/Marinerer/jotter/tree/main/libs/emitter",
"repository": {
"type": "git",
"url": "git+https://github.com/Marinerer/jotter.git"
},
"author": "lmq <[email protected]>",
"license": "MIT",
"devDependencies": {}
}
48 changes: 0 additions & 48 deletions libs/fromNow/package.json

This file was deleted.

46 changes: 46 additions & 0 deletions libs/fromNow/package2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@jotter/from-now",
"version": "1.0.1",
"description": "Very flexible relative time formatting function. You can quickly get the formatted time like 2 minutes ago, 3 weeks ago, in 5 years.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.global.js",
"jsdelivr": "dist/index.global.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.esm.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": ["dist"],
"scripts": {
"clean": "rimraf -rf ./dist",
"build:rollup": "npm run clean && NODE_ENV=production rollup -c rollup.config.mjs",
"test": "jest"
},
"keywords": [
"from now",
"to now",
"time ago",
"relative time",
"relative",
"time",
"ago",
"from",
"now",
"date format"
],
"homepage": "https://github.com/Marinerer/jotter/tree/main/libs/fromNow",
"repository": {
"type": "git",
"url": "git+https://github.com/Marinerer/jotter.git"
},
"author": "lmq <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Marinerer/jotter/issues"
}
}
13 changes: 0 additions & 13 deletions libs/polyfill/package.json

This file was deleted.

13 changes: 13 additions & 0 deletions libs/polyfill/package2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "polyfill",
"private": true,
"version": "1.0.0",
"description": "",
"main": "jest.config.js",
"scripts": {
"test": "jest"
},
"keywords": [],
"author": "",
"license": "ISC"
}
44 changes: 0 additions & 44 deletions libs/position/package.json

This file was deleted.

37 changes: 37 additions & 0 deletions libs/position/package2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@jotter/position",
"version": "1.0.1",
"description": "Positioning a DOM element relative to another DOM element.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"unpkg": "dist/index.min.js",
"jsdelivr": "dist/index.min.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": ["dist"],
"scripts": {
"clean": "rimraf -rf ./dist",
"build:rollup": "npm run clean && NODE_ENV=production rollup -c rollup.config.mjs",
"test": "jest"
},
"keywords": ["position", "fixed", "popup", "tooltip"],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"homepage": "https://github.com/Marinerer/jotter/tree/main/libs/position",
"repository": {
"type": "git",
"url": "git+https://github.com/Marinerer/jotter.git"
},
"author": "lmq <[email protected]>",
"license": "MIT",
"devDependencies": {}
}
Loading

0 comments on commit 1cc8c5e

Please sign in to comment.