Skip to content

Commit d1c6670

Browse files
committed
chore: test build error
1 parent d8deee1 commit d1c6670

File tree

3 files changed

+70
-3
lines changed

3 files changed

+70
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
11
/** @public */
22
export const VERSION: string = process.env['PKG_VERSION'] || '1.0.0'
3+
4+
/** @public */
5+
export enum Direction {
6+
Up,
7+
Down,
8+
Left,
9+
Right,
10+
}
11+
12+
/** @public */
13+
export class Point {
14+
constructor(
15+
public x: number,
16+
public y: number,
17+
protected z: number,
18+
private perspective: number,
19+
) {}
20+
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": ["./tsconfig.settings", "@sanity/pkg-utils/tsconfig/isolated-declarations.json"],
3-
"include": ["./src"]
3+
"include": ["./src"],
4+
"compilerOptions": {
5+
"erasableSyntaxOnly": false
6+
}
47
}

test/__snapshots__/cli.test.ts.snap

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,14 @@ exports[`should build \`ts-rolldown\` package > ./dist/index.cjs 1`] = `
833833
""use strict";
834834
Object.defineProperty(exports, "__esModule", { value: !0 });
835835
const VERSION = "0.0.0-development";
836+
var Direction = /* @__PURE__ */ ((Direction2) => (Direction2[Direction2.Up = 0] = "Up", Direction2[Direction2.Down = 1] = "Down", Direction2[Direction2.Left = 2] = "Left", Direction2[Direction2.Right = 3] = "Right", Direction2))(Direction || {});
837+
class Point {
838+
constructor(x, y, z, perspective) {
839+
this.x = x, this.y = y, this.z = z, this.perspective = perspective;
840+
}
841+
}
842+
exports.Direction = Direction;
843+
exports.Point = Point;
836844
exports.VERSION = VERSION;
837845
//# sourceMappingURL=index.cjs.map
838846
"
@@ -841,18 +849,56 @@ exports.VERSION = VERSION;
841849
exports[`should build \`ts-rolldown\` package > ./dist/index.d.cts 1`] = `
842850
"/** @public */
843851
declare const VERSION: string;
844-
export { VERSION };"
852+
/** @public */
853+
declare enum Direction {
854+
Up = 0,
855+
Down = 1,
856+
Left = 2,
857+
Right = 3,
858+
}
859+
/** @public */
860+
declare class Point {
861+
x: number;
862+
y: number;
863+
protected z: number;
864+
private perspective;
865+
constructor(x: number, y: number, z: number, perspective: number);
866+
}
867+
export { Direction, Point, VERSION };"
845868
`;
846869
847870
exports[`should build \`ts-rolldown\` package > ./dist/index.d.ts 1`] = `
848871
"/** @public */
849872
declare const VERSION: string;
850-
export { VERSION };"
873+
/** @public */
874+
declare enum Direction {
875+
Up = 0,
876+
Down = 1,
877+
Left = 2,
878+
Right = 3,
879+
}
880+
/** @public */
881+
declare class Point {
882+
x: number;
883+
y: number;
884+
protected z: number;
885+
private perspective;
886+
constructor(x: number, y: number, z: number, perspective: number);
887+
}
888+
export { Direction, Point, VERSION };"
851889
`;
852890
853891
exports[`should build \`ts-rolldown\` package > ./dist/index.js 1`] = `
854892
"const VERSION = "0.0.0-development";
893+
var Direction = /* @__PURE__ */ ((Direction2) => (Direction2[Direction2.Up = 0] = "Up", Direction2[Direction2.Down = 1] = "Down", Direction2[Direction2.Left = 2] = "Left", Direction2[Direction2.Right = 3] = "Right", Direction2))(Direction || {});
894+
class Point {
895+
constructor(x, y, z, perspective) {
896+
this.x = x, this.y = y, this.z = z, this.perspective = perspective;
897+
}
898+
}
855899
export {
900+
Direction,
901+
Point,
856902
VERSION
857903
};
858904
//# sourceMappingURL=index.js.map

0 commit comments

Comments
 (0)