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 b2a9d88
Show file tree
Hide file tree
Showing 21 changed files with 72 additions and 35 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
4 changes: 2 additions & 2 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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",
Expand All @@ -18,7 +18,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__'"
},
"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
6 changes: 3 additions & 3 deletions packages/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@powership/entity",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/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 +18,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
5 changes: 3 additions & 2 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/helpers",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
Expand All @@ -15,10 +15,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
6 changes: 3 additions & 3 deletions packages/logstorm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logstorm",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
Expand All @@ -18,8 +18,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__/*"
]
}
4 changes: 2 additions & 2 deletions packages/mongo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/mongo",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
Expand All @@ -18,7 +18,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
3 changes: 2 additions & 1 deletion packages/powership/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",
"main": "out/index.js",
"module": "out/module/index.js",
"browser": {
Expand All @@ -22,6 +22,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
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": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/index.js",
"sideEffects": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/server",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"module": "out/module/index.js",
"sideEffects": false,
Expand All @@ -21,7 +21,6 @@
"prepublishOnly": "run-p build fix && run-p test",
"build-targets": "run-p build:*",
"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",
Expand Down
6 changes: 3 additions & 3 deletions packages/transporter/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@powership/transporter",
"version": "2.3.1-beta.3",
"version": "2.3.1",
"main": "out/index.js",
"sideEffects": false,
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"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 +18,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
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": "2.3.1-beta.3",
"version": "2.3.1",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"prepublishOnly": {
"dependsOn": ["^build"]
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", "lib/**", "public/dist/**"]
Expand Down

0 comments on commit b2a9d88

Please sign in to comment.