Skip to content

Commit e5ab5fa

Browse files
committed
add type: "module" to basic native example package.json
1 parent 4cf1d6b commit e5ab5fa

File tree

15 files changed

+16
-2
lines changed

15 files changed

+16
-2
lines changed

basics/account-data/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/checking-accounts/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/close-account/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tests/tsconfig.test.json -t 1000000 ./tests/close-account.test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/counter/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"author": "ngundotra",
77
"license": "Apache-2.0",
88
"private": false,
9+
"type": "module",
910
"scripts": {
1011
"test": "pnpm ts-mocha -p ./tests/tsconfig.test.json -t 1000000 ./tests/counter.test.ts",
1112
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/create-account/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/cross-program-invocation/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --sbf-out-dir=./tests/fixtures && pnpm test",

basics/favorites/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/hello-solana/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/index.test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

basics/pda-rent-payer/native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
@@ -17,6 +18,5 @@
1718
"solana-bankrun": "^0.3.0",
1819
"ts-mocha": "^10.0.0",
1920
"typescript": "^4.3.5"
20-
},
21-
"type": "module"
21+
}
2222
}

basics/processing-instructions/native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
45
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",

0 commit comments

Comments
 (0)