Skip to content

Commit

Permalink
chore: @nsnanocat/util
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Oct 26, 2024
1 parent 74b7396 commit fd61af5
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Update local package.json version from release tag
if: github.ref_type == 'tag'
uses: BellCubeDev/update-package-version-by-release-tag@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Build
run: npm run build:dev
- name: Upload artifact
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "src/utils"]
path = src/utils
url = https://github.com/NanoCat-Me/utils.git
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@nsnanocat:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### 🛠️ Bug Fixes
* 修复 `Surge` 模块内置`参数面板`
### 🔄 Other Changes
* util 由 `submodule` 更改为 `package`
4 changes: 4 additions & 0 deletions arguments-builder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default defineConfig({
path: "./dist/Microsoft.Translate.yaml",
template: "./template/egern.handlebars",
},
{
path: "./dist/Microsoft.Translate.srmodule",
template: "./template/shadowrocket.handlebars",
},
],
dts: {
isExported: true,
Expand Down
60 changes: 39 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dualsubs/addon",
"version": "1.0.2",
"version": "1.0.3",
"organizationName": "🍿️ DualSubs",
"displayName": "🍿️ DualSubs: ➕ AddOn",
"description": "DualSubs 额外插件",
Expand Down Expand Up @@ -40,6 +40,7 @@
"@biomejs/biome": "^1.9.4",
"@iringo/arguments-builder": "^1.7.8",
"@iringo/sgmoudle-tools": "^1.2.2",
"@nsnanocat/util": "^1.3.2",
"@rspack/cli": "^1.0.13",
"@rspack/core": "^1.0.13",
"node-polyfill-webpack-plugin": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Translate.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { $platform, URL, _, Storage, fetch, notification, log, logError, wait, done, getScript, runScript } from "./utils/utils.mjs";
import { $platform, Lodash as _, URL, Storage, fetch, notification, log, logError, wait, done, getScript, runScript } from "@nsnanocat/util";
import database from "./function/database.mjs";
import setENV from "./function/setENV.mjs";
const $request = {
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Translate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { $platform, URL, _, Storage, fetch, notification, log, logError, wait, done, getScript, runScript } from "./utils/utils.mjs";
import { $platform, Lodash as _, URL, Storage, fetch, notification, log, logError, wait, done, getScript, runScript } from "@nsnanocat/util";
import database from "./function/database.mjs";
import setENV from "./function/setENV.mjs";
const $request = {
Expand Down
3 changes: 1 addition & 2 deletions src/function/setENV.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import getStorage from '../utils/getStorage.mjs'
import { _, log } from "../utils/utils.mjs";
import { Lodash as _, getStorage, log } from "@nsnanocat/util";

/**
* Set Environment Variables
Expand Down
1 change: 0 additions & 1 deletion src/utils
Submodule utils deleted from 40e91e

0 comments on commit fd61af5

Please sign in to comment.