rename mixan to OPENPANEL!
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@mixan/eslint-config",
|
||||
"name": "@openpanel/eslint-config",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
@@ -28,8 +28,8 @@
|
||||
"eslint-plugin-react-hooks": "^4.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mixan/prettier-config": "workspace:*",
|
||||
"@mixan/tsconfig": "workspace:*",
|
||||
"@openpanel/prettier-config": "workspace:*",
|
||||
"@openpanel/tsconfig": "workspace:*",
|
||||
"@types/eslint": "^8.44.2",
|
||||
"eslint": "^8.48.0",
|
||||
"prettier": "^3.0.3",
|
||||
@@ -41,5 +41,5 @@
|
||||
"./base.js"
|
||||
]
|
||||
},
|
||||
"prettier": "@mixan/prettier-config"
|
||||
"prettier": "@openpanel/prettier-config"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@mixan/tsconfig/base.json",
|
||||
"extends": "@openpanel/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@ const config = {
|
||||
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
|
||||
'<THIRD_PARTY_MODULES>',
|
||||
'',
|
||||
'^@mixan/(.*)$',
|
||||
'^@openpanel/(.*)$',
|
||||
'',
|
||||
'^~/',
|
||||
'^[../]',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@mixan/prettier-config",
|
||||
"name": "@openpanel/prettier-config",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"main": "index.mjs",
|
||||
@@ -10,7 +10,7 @@
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mixan/tsconfig": "workspace:*",
|
||||
"@openpanel/tsconfig": "workspace:*",
|
||||
"eslint": "^8.48.0",
|
||||
"prettier": "^3.0.3",
|
||||
"typescript": "^5.2.2"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@mixan/tsconfig/base.json",
|
||||
"extends": "@openpanel/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@mixan/publish",
|
||||
"name": "@openpanel/publish",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
@@ -13,9 +13,9 @@
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mixan/eslint-config": "workspace:*",
|
||||
"@mixan/prettier-config": "workspace:*",
|
||||
"@mixan/tsconfig": "workspace:*",
|
||||
"@openpanel/eslint-config": "workspace:*",
|
||||
"@openpanel/prettier-config": "workspace:*",
|
||||
"@openpanel/tsconfig": "workspace:*",
|
||||
"@types/eslint": "^8.44.2",
|
||||
"@types/node": "^18.16.0",
|
||||
"@types/semver": "^7.5.4",
|
||||
@@ -26,8 +26,8 @@
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"extends": [
|
||||
"@mixan/eslint-config/base"
|
||||
"@openpanel/eslint-config/base"
|
||||
]
|
||||
},
|
||||
"prettier": "@mixan/prettier-config"
|
||||
"prettier": "@openpanel/prettier-config"
|
||||
}
|
||||
|
||||
@@ -4,8 +4,7 @@ import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import semver from 'semver';
|
||||
|
||||
const sdkPackages = ['sdk', 'sdk-native', 'sdk-web', 'sdk-next'];
|
||||
// const sdkPackages = ['sdk'];
|
||||
const sdkPackages = ['sdk', 'react-native', 'web', 'nextjs'];
|
||||
|
||||
const workspacePath = (relativePath: string) =>
|
||||
path.resolve(__dirname, '../../', relativePath);
|
||||
@@ -59,7 +58,7 @@ function main() {
|
||||
dependencies: Object.entries(pkgJson.dependencies).reduce(
|
||||
(acc, [depName, depVersion]) => ({
|
||||
...acc,
|
||||
[depName]: depName.startsWith('@mixan') ? version : depVersion,
|
||||
[depName]: depName.startsWith('@openpanel') ? version : depVersion,
|
||||
}),
|
||||
{}
|
||||
),
|
||||
@@ -74,7 +73,7 @@ function main() {
|
||||
try {
|
||||
for (const name of sdkPackages) {
|
||||
execSync('pnpm build', {
|
||||
cwd: workspacePath(`./packages/${name}`),
|
||||
cwd: workspacePath(`./packages/sdks/${name}`),
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@mixan/tsconfig/base.json",
|
||||
"extends": "@openpanel/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@mixan/tsconfig",
|
||||
"name": "@openpanel/tsconfig",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"files": [
|
||||
|
||||
Reference in New Issue
Block a user