rename mixan to OPENPANEL!

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-11 13:40:46 +01:00
parent 6d4f9010d4
commit e6c0bc2ec8
201 changed files with 1193 additions and 1047 deletions

View File

@@ -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"
}

View File

@@ -1,5 +1,5 @@
{
"extends": "@mixan/tsconfig/base.json",
"extends": "@openpanel/tsconfig/base.json",
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},

View File

@@ -8,7 +8,7 @@ const config = {
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
'<THIRD_PARTY_MODULES>',
'',
'^@mixan/(.*)$',
'^@openpanel/(.*)$',
'',
'^~/',
'^[../]',

View File

@@ -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"

View File

@@ -1,5 +1,5 @@
{
"extends": "@mixan/tsconfig/base.json",
"extends": "@openpanel/tsconfig/base.json",
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},

View File

@@ -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"
}

View File

@@ -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) {

View File

@@ -1,5 +1,5 @@
{
"extends": "@mixan/tsconfig/base.json",
"extends": "@openpanel/tsconfig/base.json",
"compilerOptions": {
"module": "CommonJS",
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"

View File

@@ -1,5 +1,5 @@
{
"name": "@mixan/tsconfig",
"name": "@openpanel/tsconfig",
"version": "0.1.0",
"private": true,
"files": [