diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 443cf40..e731ae4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,6 @@ jobs: run: npm test - name: 🚧 Build run: npm run build - - run: npm install -g npm@latest - uses: tobua/release-npm-action@v2 with: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index ed4ec26..f7897e4 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,7 @@ "sideEffects": true, "main": "dist/index.js", "exports": { - ".": "./dist/index.js", - "./package.json": "./package.json" + ".": "./dist/index.js" }, "bin": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/template-cache.ts b/template-cache.ts index e08492f..dec1401 100644 --- a/template-cache.ts +++ b/template-cache.ts @@ -22,15 +22,13 @@ const removeExpiredTemplates = (version: string) => { // TODO Remove appNames if more than 10, by statSync => atimeMs (access time) templateVersions.forEach((templateVersion) => - rmSync(join(cacheDirectory, templateVersion), { recursive: true }) + rmSync(join(cacheDirectory, templateVersion), { recursive: true }), ) } export const cacheTemplate = (nativeOptions: NativeOptions) => { const directory = join(cacheDirectory, nativeOptions.version, nativeOptions.appName) - console.log(directory) - removeExpiredTemplates(nativeOptions.version) if (existsSync(directory)) { @@ -51,11 +49,9 @@ export const cacheTemplate = (nativeOptions: NativeOptions) => { encoding: 'utf8', // Write output to console if in debug mode. stdio: nativeOptions.debug ? 'inherit' : 'pipe', - } + }, ) } catch (error) { - console.log(error) - console.log(error.stdout) log(`Failed to install React Native template.\n\n${error.stdout}`, 'warning') } diff --git a/template/app/package.json b/template/app/package.json index 94fd2b7..4ba9fc2 100644 --- a/template/app/package.json +++ b/template/app/package.json @@ -14,11 +14,11 @@ } }, "dependencies": { - "epic-language": "^0.3.0", + "epic-language": "^0.4.0", "mobx": "^6.10.2", "mobx-react-lite": "^4.0.5", "react": "^18.2.0", - "react-native": "^0.72.5", + "react-native": "^0.72.6", "reactigation": "^4.0.1", "responsive-react-native": "^1.0.1" }, @@ -27,13 +27,13 @@ "@testing-library/jest-native": "^5.4.3", "@testing-library/react-native": "^12.3.0", "@tsconfig/react-native": "^3.0.2", - "@types/jest": "^29.5.5", - "@types/react-native": "^0.72.3", - "@typescript-eslint/eslint-plugin": "^6.7.5", - "@typescript-eslint/parser": "^6.7.5", + "@types/jest": "^29.5.6", + "@types/react-native": "^0.72.5", + "@typescript-eslint/eslint-plugin": "^6.8.0", + "@typescript-eslint/parser": "^6.8.0", "android-sdk-numic-plugin": "^1.0.3", "babel-jest": "^29.7.0", - "eslint": "^8.51.0", + "eslint": "^8.52.0", "eslint-plugin-prettier": "^5.0.1", "icon-numic-plugin": "^1.4.3", "jest": "^29.7.0", diff --git a/template/default/package.json b/template/default/package.json index a0785d4..b44a774 100644 --- a/template/default/package.json +++ b/template/default/package.json @@ -15,20 +15,20 @@ }, "dependencies": { "react": "^18.2.0", - "react-native": "^0.72.5" + "react-native": "^0.72.6" }, "type": "module", "devDependencies": { "@react-native/eslint-config": "^0.74.0", "@tsconfig/react-native": "^3.0.2", - "@types/jest": "^29.5.5", - "@types/react-native": "^0.72.3", - "@types/react-test-renderer": "^18.0.3", - "@typescript-eslint/eslint-plugin": "^6.7.5", - "@typescript-eslint/parser": "^6.7.5", + "@types/jest": "^29.5.6", + "@types/react-native": "^0.72.5", + "@types/react-test-renderer": "^18.0.5", + "@typescript-eslint/eslint-plugin": "^6.8.0", + "@typescript-eslint/parser": "^6.8.0", "android-sdk-numic-plugin": "^1.0.3", "babel-jest": "^29.7.0", - "eslint": "^8.51.0", + "eslint": "^8.52.0", "eslint-plugin-prettier": "^5.0.1", "icon-numic-plugin": "^1.4.3", "jest": "^29.7.0",