Skip to content

Commit

Permalink
add publish script to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dumconstantin committed Oct 24, 2024
1 parent 4bad6bb commit f71cc7e
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"release": "yarn clean && yarn setup && yarn ./packages/engine.utils run build && yarn build --exclude @c11/engine.utils && yarn test",
"release:packages": "yarn clean && yarn ./packages/engine.utils run build && yarn build --exclude @c11/engine.utils && yarn test",
"version:lerna": "lerna version --conventional-commits --exact",
"publish": "lerna publish from-package -y",
"publish": "yarn workspaces foreach -Apt run publish",
"publish:local": "lerna publish from-package --registry http://localhost:4873",
"code:format": "prettier --write \"./**/*.(js|jsx|ts|tsx|html|css|json)\"",
"setup": "yarn install && yarn ./nm-packages/engine.dashboard"
Expand Down
5 changes: 3 additions & 2 deletions packages/engine.babel-plugin-hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"test:simple": "NODE_ENV=test jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
"test:update": "NODE_ENV=test jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/* --updateSnapshot",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"author": {
"name": "Constantin Dumitrescu",
Expand All @@ -34,4 +35,4 @@
"typescript": "4.8.4"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.babel-plugin-syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"test:simple": "NODE_ENV=test jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/api*",
"test:update": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/* --updateSnapshot",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"author": {
"name": "Constantin Dumitrescu",
Expand Down Expand Up @@ -38,4 +39,4 @@
"lodash": "^4.17.21"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"execute": "chmod +x dist/index.js && NODE_ENV=development ./dist/index.js create test",
"start": "yarn clean && yarn build && yarn execute",
"test": "echo \"jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*\"",
"test:coverage": "jest --runInBand --config ./jest.config.js --collectCoverage --collectCoverageFrom=packages/engine.producer/src/**/*.{ts,tsx,js,jsx} --runTestsByPath ./specs/*"
"test:coverage": "jest --runInBand --config ./jest.config.js --collectCoverage --collectCoverageFrom=packages/engine.producer/src/**/*.{ts,tsx,js,jsx} --runTestsByPath ./specs/*",
"publish": "yarn npm publish --tolerate-republish"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
Expand All @@ -59,4 +60,4 @@
"ncp": "^2.0.0",
"pacote": "^13.6.2"
}
}
}
5 changes: 3 additions & 2 deletions packages/engine.db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"build": "tsc",
"test:simple": "NODE_ENV=test jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/**/*",
"test:coverage": "NODE_ENV=test jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/**/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"devDependencies": {
"@babel/core": "^7.19.3",
Expand All @@ -43,4 +44,4 @@
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9",
"engineConfig": {}
}
}
5 changes: 3 additions & 2 deletions packages/engine.patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build": "echo \"package should be used as is - without build\"",
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"peerDependencies": {
"react": ">=16"
Expand Down Expand Up @@ -56,4 +57,4 @@
"typescript": "5.6.3"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.producer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"build": "tsc",
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
Expand Down Expand Up @@ -48,4 +49,4 @@
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9",
"engineConfig": {}
}
}
5 changes: 3 additions & 2 deletions packages/engine.react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"build": "tsc",
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"peerDependencies": {
"react": ">=16",
Expand Down Expand Up @@ -59,4 +60,4 @@
"typescript": "4.8.4"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsc",
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/events*",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"dependencies": {
"@c11/engine.db": "4.0.0-alpha.122",
Expand All @@ -35,4 +36,4 @@
"jest": "^29.4.1",
"typescript": "4.8.4"
}
}
}
5 changes: 3 additions & 2 deletions packages/engine.service-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"tsc": "tsc --project tsconfig.json",
"build": "babel src --out-dir dist --extensions \".ts\" && chmod +x dist/index.js",
"test": "echo \"jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*\"",
"test:coverage": "jest --runInBand --config ./jest.config.js --collectCoverage --collectCoverageFrom=./src/**/*.{ts,tsx,js,jsx} --runTestsByPath ./specs/*"
"test:coverage": "jest --runInBand --config ./jest.config.js --collectCoverage --collectCoverageFrom=./src/**/*.{ts,tsx,js,jsx} --runTestsByPath ./specs/*",
"publish": "yarn npm publish --tolerate-republish"
},
"peerDependencies": {
"react": ">=16",
Expand Down Expand Up @@ -85,4 +86,4 @@
"webpack-dev-server": "^4.11.1"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"test": "echo \"not ready\"",
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
"code:format": "prettier --write \"./**/*.(js|jsx|ts|tsx|html|css|json)\"",
"test:coverage": "jest --runInBand --config ./jest.config.js --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*"
"test:coverage": "jest --runInBand --config ./jest.config.js --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"publish": "yarn npm publish --tolerate-republish"
},
"peerDependencies": {
"react": ">=16"
Expand Down Expand Up @@ -46,4 +47,4 @@
"typescript": "4.8.4"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.types-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"typings": "dist/index.d.ts",
"scripts": {
"build": "echo \"skipping\"",
"test": "echo \"skipping\""
"test": "echo \"skipping\"",
"publish": "yarn npm publish --tolerate-republish"
},
"author": {
"name": "Constantin Dumitrescu",
Expand All @@ -24,4 +25,4 @@
"dependencies": {
"@c11/engine.babel-plugin-syntax": "4.0.0-alpha.122"
}
}
}
5 changes: 3 additions & 2 deletions packages/engine.types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"email": "[email protected]"
},
"scripts": {
"build": "tsc"
"build": "tsc",
"publish": "yarn npm publish --tolerate-republish"
},
"devDependencies": {
"@types/react": "^18.0.27",
Expand All @@ -20,4 +21,4 @@
"typescript": "4.6.3"
},
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
}
}
5 changes: 3 additions & 2 deletions packages/engine.utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"build": "tsc",
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
"test": "yarn run test:coverage"
"test": "yarn run test:coverage",
"publish": "yarn npm publish --tolerate-republish"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
Expand All @@ -42,4 +43,4 @@
"lodash": "^4.17.21",
"nanoid": "^3.3.4"
}
}
}

0 comments on commit f71cc7e

Please sign in to comment.