Skip to content

Commit

Permalink
feat(runmate): emmit ts declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopresto committed Feb 17, 2024
1 parent 0353663 commit b2e37e4
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powership",
"version": "3.2.15",
"version": "3.2.16",
"private": true,
"scripts": {
"pack": "run-s pack:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/accounts",
"version": "3.2.15",
"version": "3.2.16",
"description": "Powership accounts",
"type": "module",
"main": "./out/index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/babel-plugins",
"version": "3.2.15",
"version": "3.2.16",
"main": "./out/index.js",
"sideEffects": false,
"typings": "./out/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/boilerplate",
"version": "3.2.15",
"version": "3.2.16",
"author": "antoniopresto <[email protected]>",
"sideEffects": false,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/deepstate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/deepstate",
"version": "3.2.15",
"version": "3.2.16",
"main": "out/index.cjs",
"module": "out/module/index.mjs",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/entity",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/helpers",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/logstorm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logstorm",
"version": "3.2.15",
"version": "3.2.16",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/mongo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/mongo",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plugin-engine",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/powership/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powership",
"version": "3.2.15",
"version": "3.2.16",
"author": "antoniopresto <[email protected]>",
"type": "module",
"main": "./out/index.cjs",
Expand Down
17 changes: 13 additions & 4 deletions packages/runmate/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
{
"name": "runmate",
"version": "3.2.15",
"version": "3.2.17",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"main": "out/index.cjs",
"module": "out/module/index.mjs",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
"types": "./out/index.d.ts",
"exports": {
".": {
"types": "./out/module/index.d.ts",
"import": "./out/module/index.mjs",
"require": "./out/index.cjs"
}
},
"bin": {
"run": "./out/cli.cjs"
},
"sideEffects": false,
"scripts": {
"test": "echo ok",
"link": "pnpm prepublishOnly && pnpm link --global",
"build": "run-s clear && run-p build:*",
"build": "run-s clear declarations build:*",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:lint": "eslint src --ext .ts --fix",
Expand Down
8 changes: 8 additions & 0 deletions packages/runmate/tsconfig.declarations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.module.json",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true
},
"exclude": ["node_modules/**", "**/__tests__/*"]
}
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/schema",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/server",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/transporter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/transporter",
"version": "3.2.15",
"version": "3.2.16",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/module/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/utils",
"version": "3.2.15",
"version": "3.2.16",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
Expand Down
8 changes: 0 additions & 8 deletions prepublishSafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ class DepTree {
packageValues: PackageItem[] = [];
packageByName = new Map<string, PackageItem>();

// dependencyEntryNames = [
// 'dependencies',
// 'devDependencies',
// 'optionalDependencies',
// 'peerDependencies',
// 'devDependencies',
// ];

constructor(value: PackageJson[]) {
this.packageValues = value.map((json, index) => {
const item: PackageItem = {
Expand Down

0 comments on commit b2e37e4

Please sign in to comment.