@dexyn/common-library 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/.github/workflows/publish.yml +0 -37
- package/package/package.json +0 -28
- /package/{dist/date → date}/dateUtils.d.ts +0 -0
- /package/{dist/date → date}/dateUtils.js +0 -0
- /package/{dist/result → result}/httpResultUtils.d.ts +0 -0
- /package/{dist/result → result}/httpResultUtils.js +0 -0
- /package/{dist/result → result}/resultUtils.d.ts +0 -0
- /package/{dist/result → result}/resultUtils.js +0 -0
- /package/{dist/validation → validation}/numberIdSchema.d.ts +0 -0
- /package/{dist/validation → validation}/numberIdSchema.js +0 -0
- /package/{dist/validation → validation}/validationUtils.d.ts +0 -0
- /package/{dist/validation → validation}/validationUtils.js +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dexyn/common-library",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"main": "index.js",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -11,7 +11,9 @@
|
|
11
11
|
},
|
12
12
|
"scripts": {
|
13
13
|
"clean": "rimraf dist",
|
14
|
-
"build": "npm run clean && tsc"
|
14
|
+
"build": "npm run clean && tsc",
|
15
|
+
"prepublishOnly": "tsc && npm run build && npm run copy-to-root",
|
16
|
+
"copy-to-root": "cp -r dist/* ./"
|
15
17
|
},
|
16
18
|
"keywords": [],
|
17
19
|
"author": "",
|
@@ -1,37 +0,0 @@
|
|
1
|
-
name: Build and Publish to NPM
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master # Trigger on pushes to the `main` branch
|
7
|
-
workflow_dispatch: # Allow manual triggering
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
build-and-publish:
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
|
13
|
-
steps:
|
14
|
-
# Step 1: Check out the code
|
15
|
-
- name: Checkout code
|
16
|
-
uses: actions/checkout@v3
|
17
|
-
|
18
|
-
# Step 2: Set up Node.js
|
19
|
-
- name: Set up Node.js
|
20
|
-
uses: actions/setup-node@v3
|
21
|
-
with:
|
22
|
-
node-version: '16' # Specify Node.js version
|
23
|
-
registry-url: 'https://registry.npmjs.org/'
|
24
|
-
|
25
|
-
# Step 3: Install dependencies
|
26
|
-
- name: Install dependencies
|
27
|
-
run: npm ci
|
28
|
-
|
29
|
-
# Step 4: Build the library
|
30
|
-
- name: Build the library
|
31
|
-
run: npm run build
|
32
|
-
|
33
|
-
# Step 5: Publish to NPM
|
34
|
-
- name: Publish to NPM
|
35
|
-
run: npm publish --access public
|
36
|
-
env:
|
37
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package/package.json
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@dexyn/common-library",
|
3
|
-
"version": "1.0.1",
|
4
|
-
"main": "index.js",
|
5
|
-
"repository": {
|
6
|
-
"type": "git",
|
7
|
-
"url": "https://github.com/dexxyn1/common-library.git"
|
8
|
-
},
|
9
|
-
"publishConfig": {
|
10
|
-
"access": "public"
|
11
|
-
},
|
12
|
-
"scripts": {
|
13
|
-
"clean": "rimraf dist",
|
14
|
-
"build": "npm run clean && tsc"
|
15
|
-
},
|
16
|
-
"keywords": [],
|
17
|
-
"author": "",
|
18
|
-
"license": "ISC",
|
19
|
-
"type": "commonjs",
|
20
|
-
"description": "",
|
21
|
-
"devDependencies": {
|
22
|
-
"rimraf": "^6.0.1",
|
23
|
-
"typescript": "^5.7.3"
|
24
|
-
},
|
25
|
-
"dependencies": {
|
26
|
-
"zod": "^3.24.1"
|
27
|
-
}
|
28
|
-
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|