Skip to content

Commit

Permalink
fix "build:module-node" script
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopresto committed Oct 24, 2023
1 parent efa0bcd commit 43a186c
Show file tree
Hide file tree
Showing 21 changed files with 185 additions and 64 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": "2.3.1-beta.3",
"version": "2.3.1",
"private": true,
"scripts": {
"pack": "run-s pack:*",
Expand Down
21 changes: 16 additions & 5 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
{
"name": "@powership/accounts",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"description": "Powership accounts",
"main": "out/index.js",
"typings": "out/index.d.ts",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"browser": {
"out/module/index.js": "./out/browser/module/index.js",
"out/index.js": "./out/browser/index.js"
},
"sideEffects": false,
"license": "MIT",
"scripts": {
Expand All @@ -15,10 +26,10 @@
"fix:lint": "eslint src --ext .ts --fix",
"prepublishOnly": "run-s build fix && run-p test",
"build-targets": "run-p build:*",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:node": "TARGET=node npm run babild -- --out-xdir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx'"
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
"files": [
"package.json",
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": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out",
"sideEffects": false,
"typings": "out",
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": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
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": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/index.js",
"sideEffects": false,
Expand Down
17 changes: 12 additions & 5 deletions packages/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "@powership/entity",
"version": "2.3.1-beta.3",
"main": "out/index.js",
"module": "out/module/index.js",
"version": "2.3.1",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"sideEffects": false,
"scripts": {
"test": "jest --runInBand",
"test": "jest",
"build": "run-s clear && run-p declarations build:*",
"clear": "rimraf out",
"fix": "run-s fix:* ",
Expand All @@ -18,7 +25,7 @@
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx'"
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
"description": "Powership db",
"repository": {
Expand Down
20 changes: 16 additions & 4 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"name": "@powership/helpers",
"version": "2.3.1-beta.3",
"main": "out/index.js",
"module": "out/module/index.js",
"version": "2.3.1",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"browser": {
"out/module/index.js": "./out/browser/module/index.js",
"out/index.js": "./out/browser/index.js"
},
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"sideEffects": false,
Expand All @@ -15,10 +26,11 @@
"fix:lint": "eslint src --ext .ts --fix",
"prepublishOnly": "run-s build fix && run-p test",
"build-targets": "run-p build:*",
"build:module-browser": "TARGET=module-browser npm run babild -- --out-dir out/browser/module",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx'"
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
"description": "Powership server-utils",
"repository": {
Expand Down
23 changes: 17 additions & 6 deletions packages/logstorm/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
{
"name": "logstorm",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"main": "out/index.js",
"module": "out/module/index.js",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"browser": {
"out/module/index.js": "./out/browser/module/index.js",
"out/index.js": "./out/browser/index.js"
},
"sideEffects": false,
"license": "MIT",
"scripts": {
"test": "echo ok",
"build": "run-s clear && run-p declarations build:*",
Expand All @@ -18,8 +29,8 @@
"build-targets": "run-p build:*",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.json",
"babild": "babel 'src' --extensions '.ts' --source-maps=true --ignore '**/__tests__'"
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
"description": "run command in each package",
"keywords": [],
Expand Down
9 changes: 9 additions & 0 deletions packages/logstorm/tsconfig.declarations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"emitDeclarationOnly": true
},
"exclude": [
"node_modules/**"
]
}
12 changes: 7 additions & 5 deletions packages/logstorm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"compilerOptions": {
"outDir": "out",
"rootDir": "src",
"paths": {},
"baseUrl": ".",
"lib": ["es5", "es6", "es7", "esnext", "dom", "es2020"],
"lib": ["es5", "es6", "es7", "esnext", "dom"],
"declaration": true,
"target": "es5",
"removeComments": false,
Expand All @@ -12,13 +13,14 @@
"resolveJsonModule": true,
"strict": true,
"skipLibCheck": true,
"strictPropertyInitialization": true,
"strictPropertyInitialization": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": true,
"downlevelIteration": true,
"isolatedModules": true,
"noImplicitAny": false
},
"include": ["./src/**/*"]
Expand Down
8 changes: 8 additions & 0 deletions packages/logstorm/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"noUnusedLocals": true,
"noUnusedParameters": true
},
"exclude": ["node_modules/**"]
}
9 changes: 6 additions & 3 deletions packages/logstorm/tsconfig.module.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"extends": "./tsconfig",
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"target": "esnext",
"outDir": "out/module",
"module": "esnext"
"module": "esnext",
"noUnusedLocals": true,
"noUnusedParameters": true
},
"exclude": [
"node_modules/**"
"node_modules/**", //
"**/*/__tests__/*"
]
}
11 changes: 11 additions & 0 deletions packages/logstorm/tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"noUnusedLocals": true,
"noUnusedParameters": true
},
"exclude": [
"node_modules/**",
"**/*/__tests__/*"
]
}
18 changes: 12 additions & 6 deletions packages/mongo/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "@powership/mongo",
"version": "2.3.1-beta.3",
"main": "out/index.js",
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"version": "2.3.1",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"sideEffects": false,
"license": "MIT",
"scripts": {
"test": "jest",
"build": "run-s clear && run-p declarations build:*",
Expand All @@ -18,7 +24,7 @@
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx'"
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
"description": "Powership mongo",
"repository": {
Expand Down
16 changes: 12 additions & 4 deletions packages/powership/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"name": "powership",
"version": "2.3.1-beta.3",
"main": "out/index.js",
"module": "out/module/index.js",
"version": "2.3.1",
"author": "antoniopresto <[email protected]>",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"browser": {
"out/module/index.js": "./out/browser/module/index.js",
"out/index.js": "./out/browser/index.js"
},
"sideEffects": false,
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"scripts": {
"test": "jest",
Expand All @@ -22,6 +29,7 @@
"build:browser": "TARGET=browser npm run babild -- --out-dir out/browser",
"build:module-browser": "TARGET=module-browser npm run babild -- --out-dir out/browser/module",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/runmate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "runmate",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
Expand All @@ -22,8 +22,8 @@
"build-targets": "run-p build:*",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.json",
"babild": "babel 'src' --extensions '.ts' --source-maps=true --ignore '**/__tests__'"
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
"description": "run command in each package",
"keywords": [],
Expand Down
15 changes: 11 additions & 4 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "@powership/schema",
"version": "2.3.1-beta.3",
"main": "out/index.js",
"module": "out/module/index.js",
"sideEffects": false,
"version": "2.3.1",
"type": "module",
"main": "./out/index.js",
"module": "./out/module/index.js",
"types": "./out/index.d.ts",
"exports": {
"types": "./out/index.d.ts",
"import": "./out/module/index.js",
"require": "./out/index.js"
},
"browser": {
"out/module/index.js": "./out/browser/module/index.js",
"out/index.js": "./out/browser/index.js"
},
"sideEffects": false,
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"scripts": {
Expand Down
Loading

0 comments on commit 43a186c

Please sign in to comment.