easc 0.0.1 → 0.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/bin/easc.js +2 -2
- package/index.ts +8 -8
- package/package.json +1 -1
- package/src/utils/files.ts +2 -2
- package/src/utils/upload.ts +4 -4
package/bin/easc.js
CHANGED
|
@@ -14,9 +14,9 @@ if (isBun) {
|
|
|
14
14
|
// Bun natively supports TypeScript, just import directly
|
|
15
15
|
await import(indexPath);
|
|
16
16
|
} else {
|
|
17
|
-
// Node.js - use tsx
|
|
17
|
+
// Node.js - use tsx for TypeScript support
|
|
18
18
|
const envPath = join(process.cwd(), '.env');
|
|
19
|
-
const nodeArgs = ['--import', 'tsx'];
|
|
19
|
+
const nodeArgs = ['--import', 'tsx/esm'];
|
|
20
20
|
|
|
21
21
|
// Add --env-file flag if .env exists in current directory
|
|
22
22
|
if (existsSync(envPath)) {
|
package/index.ts
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { execSync } from "child_process";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import chalk from "chalk";
|
|
5
|
-
import { parseArguments } from "./src/utils/cli";
|
|
6
|
-
import { validateConfig, getConfig } from "./src/utils/schema";
|
|
7
|
-
import { resolveRuntimeVersion, getPlatforms } from "./src/utils/runtime";
|
|
8
|
-
import { getCommitHash, getShortCommitHash, isGitClean } from "./src/utils/git";
|
|
5
|
+
import { parseArguments } from "./src/utils/cli.ts";
|
|
6
|
+
import { validateConfig, getConfig } from "./src/utils/schema.ts";
|
|
7
|
+
import { resolveRuntimeVersion, getPlatforms } from "./src/utils/runtime.ts";
|
|
8
|
+
import { getCommitHash, getShortCommitHash, isGitClean } from "./src/utils/git.ts";
|
|
9
9
|
import {
|
|
10
10
|
readAppJson,
|
|
11
11
|
readMetadata,
|
|
12
12
|
findBundleFile,
|
|
13
13
|
getAssetFiles,
|
|
14
14
|
checkExportDirectory,
|
|
15
|
-
} from "./src/utils/files";
|
|
16
|
-
import { uploadBundle, createDryRunSummary } from "./src/utils/upload";
|
|
17
|
-
import { Logger } from "./src/utils/logger";
|
|
18
|
-
import { PlatformType } from "./src/enums/platform";
|
|
15
|
+
} from "./src/utils/files.ts";
|
|
16
|
+
import { uploadBundle, createDryRunSummary } from "./src/utils/upload.ts";
|
|
17
|
+
import { Logger } from "./src/utils/logger.ts";
|
|
18
|
+
import { PlatformType } from "./src/enums/platform.ts";
|
|
19
19
|
|
|
20
20
|
type IDeploymentResult = {
|
|
21
21
|
platform: PlatformType;
|
package/package.json
CHANGED
package/src/utils/files.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import { IAppJson } from "./runtime";
|
|
4
|
-
import { Platform, PlatformType } from "../enums/platform";
|
|
3
|
+
import { IAppJson } from "./runtime.ts";
|
|
4
|
+
import { Platform, PlatformType } from "../enums/platform.ts";
|
|
5
5
|
|
|
6
6
|
export interface IMetadata {
|
|
7
7
|
fileMetadata?: {
|
package/src/utils/upload.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
|
-
import { IAppJson } from "./runtime";
|
|
3
|
-
import { IMetadata } from "./files";
|
|
4
|
-
import { Config } from "./schema";
|
|
5
|
-
import { PlatformType } from "../enums/platform";
|
|
2
|
+
import { IAppJson } from "./runtime.ts";
|
|
3
|
+
import { IMetadata } from "./files.ts";
|
|
4
|
+
import { Config } from "./schema.ts";
|
|
5
|
+
import { PlatformType } from "../enums/platform.ts";
|
|
6
6
|
|
|
7
7
|
export interface IUploadOptions {
|
|
8
8
|
platform: PlatformType;
|