Initial TrueGrowth source import

This commit is contained in:
2026-07-07 09:36:36 +08:00
commit 3b6781d695
2283 changed files with 691996 additions and 0 deletions

24
scripts/publish.js Normal file
View File

@@ -0,0 +1,24 @@
const { execSync } = require('child_process');
const path = require('path');
const fs = require('fs');
const libraries = ['react-board', 'react-text', 'drawnix'];
libraries.forEach(lib => {
const libPath = path.resolve(__dirname, '../dist', lib);
if (fs.existsSync(libPath)) {
console.log(`Publishing ${lib}...`);
try {
execSync('npm publish --access public', {
cwd: libPath,
stdio: 'inherit'
});
console.log(`Successfully published ${lib}`);
} catch (error) {
console.error(`Failed to publish ${lib}:`, error);
}
} else {
console.error(`Library path not found: ${libPath}`);
}
});