typenative 0.0.13 → 0.0.15
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/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/CHANGELOG.md +44 -0
- package/README.md +1 -1
- package/bin/index.js +1 -1
- package/bin/transpiler.js +765 -245
- package/package.json +26 -22
- package/types/typenative.d.ts +117 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: 20
|
|
18
|
+
- run: npm ci
|
|
19
|
+
- run: npm test
|
|
20
|
+
|
|
21
|
+
publish-gpr:
|
|
22
|
+
needs: build
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
permissions:
|
|
25
|
+
contents: read
|
|
26
|
+
packages: write
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
- uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version: 20
|
|
32
|
+
registry-url: https://npm.pkg.github.com/
|
|
33
|
+
- run: npm ci
|
|
34
|
+
- run: npm publish
|
|
35
|
+
env:
|
|
36
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to TypeNative will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.0.14] - 2025-05-25
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Project creation with new `--new` command
|
|
12
|
+
- Support for functions and arrow functions
|
|
13
|
+
- Support for switch statements
|
|
14
|
+
- If statements, while loops, and for...of loops for arrays
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Replaced shelljs dependency with execa for improved process execution
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- Project creation issues
|
|
21
|
+
|
|
22
|
+
## [0.0.12] - 2025-05-23
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Switched transpilation target to Go language
|
|
26
|
+
|
|
27
|
+
## [0.0.9] - 2024-03-01
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
- Basic types support (number, boolean, string, null, any)
|
|
31
|
+
- Support for variable declarations
|
|
32
|
+
- Support for binary expressions
|
|
33
|
+
- Arithmetic, comparison, logical, and increment/decrement operators
|
|
34
|
+
|
|
35
|
+
## [0.0.1] - 2024-02-24
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- Initial project setup
|
|
39
|
+
- Basic project structure
|
|
40
|
+
|
|
41
|
+
## [0.0.0] - 2022-12-20
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
- Initial commit
|
package/README.md
CHANGED
package/bin/index.js
CHANGED
|
@@ -105,7 +105,7 @@ function getPackageJson(projectName) {
|
|
|
105
105
|
build: `npx typenative --source main.ts --output bin/${projectName}.exe`
|
|
106
106
|
},
|
|
107
107
|
devDependencies: {
|
|
108
|
-
typenative: '^0.0.
|
|
108
|
+
typenative: '^0.0.15'
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
return JSON.stringify(pckg, null, 2);
|