edgeone 1.0.1 → 1.0.2
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/README.md +1 -1
- package/edgeone-dist/cli.js +4 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ EdgeOne CLI can help you manage and debug Pages Functions in the project more ef
|
|
|
22
22
|
|
|
23
23
|
- Create a [Pages project](https://edgeone.ai/pages/new?s_url=https://console.tencentcloud.com/edgeone/pages) in the Console, and clone the repository to Local.
|
|
24
24
|
|
|
25
|
-
*If you are a China site user, please go to the corresponding [Pages](https://console.cloud.tencent.com/edgeone/pages)
|
|
25
|
+
*If you are a China site user, please go to the corresponding [Pages](https://console.cloud.tencent.com/edgeone/pages) console.*
|
|
26
26
|
|
|
27
27
|
<br />
|
|
28
28
|
|
package/edgeone-dist/cli.js
CHANGED
|
@@ -103299,7 +103299,7 @@ var yargs_default = Yargs;
|
|
|
103299
103299
|
// package.json
|
|
103300
103300
|
var package_default = {
|
|
103301
103301
|
name: "edgeone",
|
|
103302
|
-
version: "1.0.
|
|
103302
|
+
version: "1.0.2",
|
|
103303
103303
|
description: "Command-line interface for TencentCloud Pages Functions",
|
|
103304
103304
|
bin: {
|
|
103305
103305
|
edgeone: "./edgeone-bin/edgeone.js"
|
|
@@ -103321,9 +103321,11 @@ var package_default = {
|
|
|
103321
103321
|
scripts: {
|
|
103322
103322
|
clean: "rimraf ./edgeone-dist ./edgeone-bin",
|
|
103323
103323
|
copy: "cp -r ./src/command/init/templates ./edgeone-dist/templates",
|
|
103324
|
+
xcopy: "xcopy /QEY .\\src\\command\\init\\templates .\\edgeone-dist\\templates",
|
|
103324
103325
|
bundle: "node -r esbuild-register ./scripts/bundle.ts",
|
|
103325
103326
|
watch: "node -r esbuild-register ./scripts/bundle.ts watch",
|
|
103326
103327
|
build: "npm run clean && npm run bundle && npm run copy",
|
|
103328
|
+
buildWin: "npm run clean && npm run bundle && npm run xcopy",
|
|
103327
103329
|
test: "jest --no-cache"
|
|
103328
103330
|
},
|
|
103329
103331
|
dependencies: {
|
|
@@ -113887,6 +113889,7 @@ var BuildFunctionGenerator = class {
|
|
|
113887
113889
|
});
|
|
113888
113890
|
const regex = /\.(js|ts|cjs|tsx|jsx)$/;
|
|
113889
113891
|
const bundledCode = result.outputFiles[0].text;
|
|
113892
|
+
filePath = filePath.replace(/\\/g, "/");
|
|
113890
113893
|
const extractedPath = filePath.replace(/\/index\.(js|ts|cjs|tsx|jsx)/, ".js").replace(regex, "").replace("functions", "");
|
|
113891
113894
|
return {
|
|
113892
113895
|
filePath: filePath.replace("functions/", ""),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edgeone",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Command-line interface for TencentCloud Pages Functions",
|
|
5
5
|
"bin": {
|
|
6
6
|
"edgeone": "./edgeone-bin/edgeone.js"
|
|
@@ -22,9 +22,11 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"clean": "rimraf ./edgeone-dist ./edgeone-bin",
|
|
24
24
|
"copy": "cp -r ./src/command/init/templates ./edgeone-dist/templates",
|
|
25
|
+
"xcopy": "xcopy /QEY .\\src\\command\\init\\templates .\\edgeone-dist\\templates",
|
|
25
26
|
"bundle": "node -r esbuild-register ./scripts/bundle.ts",
|
|
26
27
|
"watch": "node -r esbuild-register ./scripts/bundle.ts watch",
|
|
27
28
|
"build": "npm run clean && npm run bundle && npm run copy",
|
|
29
|
+
"buildWin": "npm run clean && npm run bundle && npm run xcopy",
|
|
28
30
|
"test": "jest --no-cache"
|
|
29
31
|
},
|
|
30
32
|
"dependencies": {
|