-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70a8804
commit 4d54aab
Showing
5 changed files
with
52 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
import { build, emptyDir } from 'https://deno.land/x/[email protected]/mod.ts'; | ||
|
||
if (!Deno.args[0]) { | ||
console.log('Missing version'); | ||
Deno.exit(); | ||
console.log('Missing version'); | ||
Deno.exit(); | ||
} | ||
|
||
await emptyDir('./npm'); | ||
|
||
await build({ | ||
packageManager: 'pnpm', | ||
scriptModule: false, | ||
entryPoints: ['./mod.ts'], | ||
outDir: './npm', | ||
shims: { | ||
custom: [{ | ||
package: { | ||
name: 'node-fetch', | ||
version: '^3.2.4', | ||
}, | ||
typesPackage: { | ||
name: '@types/node', | ||
version: '^16.x', | ||
}, | ||
globalNames: [{ | ||
name: 'fetch', | ||
exportName: 'default', | ||
}, { | ||
name: 'Request', | ||
typeOnly: true, | ||
}, { | ||
name: 'Response', | ||
}], | ||
}], | ||
packageManager: 'pnpm', | ||
scriptModule: false, | ||
entryPoints: ['./mod.ts'], | ||
outDir: './npm', | ||
shims: { | ||
custom: [{ | ||
package: { | ||
name: 'node-fetch', | ||
version: '^3.2.4', | ||
}, | ||
typesPackage: { | ||
name: '@types/node', | ||
version: '^16.x', | ||
}, | ||
globalNames: [{ | ||
name: 'fetch', | ||
exportName: 'default', | ||
}, { | ||
name: 'Request', | ||
typeOnly: true, | ||
}, { | ||
name: 'Response', | ||
}], | ||
}], | ||
}, | ||
package: { | ||
name: '@revoltio/rest', | ||
version: Deno.args[0], | ||
description: 'REST module for revolt.io', | ||
license: 'Apache-2', | ||
repository: { | ||
type: 'git', | ||
url: 'git+https://github.com/revolt-io/rest.git', | ||
}, | ||
package: { | ||
name: '@revoltio/rest', | ||
version: Deno.args[0], | ||
description: 'REST module for revolt.io', | ||
license: 'Apache-2', | ||
repository: { | ||
type: 'git', | ||
url: 'git+https://github.com/revolt-io/rest.git', | ||
}, | ||
bugs: { | ||
url: 'https://github.com/revolt-io/rest/issues', | ||
}, | ||
engines: { | ||
node: ">=16.6.0" | ||
}, | ||
files: [ | ||
"esm/*", | ||
"types/*" | ||
], | ||
bugs: { | ||
url: 'https://github.com/revolt-io/rest/issues', | ||
}, | ||
engines: { | ||
node: '>=16.6.0', | ||
}, | ||
files: [ | ||
'esm/*', | ||
'types/*', | ||
], | ||
}, | ||
}); | ||
|
||
Deno.copyFileSync('LICENSE', 'npm/LICENSE'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// TODO: | ||
export class RateLimitError extends Error {} | ||
// TODO: | ||
export class RateLimitError extends Error {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './HTTPError.ts'; | ||
export * from './RateLimitError.ts' | ||
export * from './RateLimitError.ts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters